Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: This may sound stupid but pls help

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default This may sound stupid but pls help

    hi i am very new to Java, pls help with my question.

        public void search(String host)
    	{
    		(dun bother about whats inside search)
    	}
        public void actionPerformed(ActionEvent e) {
            text.search("www.axp.com.sg");
        }

    i have a error with text.search, it seems that i doesnt allow me to use the search().


  2. #2
    Member angstrem's Avatar
    Join Date
    Mar 2013
    Location
    Ukraine
    Posts
    200
    My Mood
    Happy
    Thanks
    9
    Thanked 31 Times in 29 Posts

    Default Re: This may sound stupid but pls help

    Can you show us the error text?

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: This may sound stupid but pls help

    Yep, there are too many things you're not telling us that are necessary if we can help you.

  4. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: This may sound stupid but pls help

    error is cannot find symbol - method search

    i cant paste the whole code cos its a sch assignment

  5. #5
    Member angstrem's Avatar
    Join Date
    Mar 2013
    Location
    Ukraine
    Posts
    200
    My Mood
    Happy
    Thanks
    9
    Thanked 31 Times in 29 Posts

    Default Re: This may sound stupid but pls help

    What is the class of text object? What is the class, where search() and actionPerformed() methods are located?

  6. #6
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: This may sound stupid but pls help

    Quote Originally Posted by ahmer View Post
    error is cannot find symbol - method search

    i cant paste the whole code cos its a sch assignment
    You have to post enough information so that we can help. Remember that we cannot read minds nor see code not shown. Also please avoid using non-standard abbreviations in your questions here. You're making helping you more difficult than it needs to be by doing this.

Similar Threads

  1. [SOLVED] Cant find stupid bug.
    By Saintroi in forum What's Wrong With My Code?
    Replies: 28
    Last Post: April 17th, 2012, 07:39 PM
  2. Replies: 0
    Last Post: January 12th, 2012, 03:54 PM
  3. what the stupid problem in using netbeans
    By ms_ceng in forum Java IDEs
    Replies: 3
    Last Post: December 13th, 2011, 03:28 AM
  4. Is this a stupid idea?
    By Kerr in forum Java Theory & Questions
    Replies: 4
    Last Post: November 30th, 2011, 01:29 PM
  5. My doubt may be stupid
    By kalees in forum Object Oriented Programming
    Replies: 2
    Last Post: September 22nd, 2009, 02:38 AM