Results 1 to 5 of 5
  1. #1
    mathidioticz is offline Member
    Join Date
    Jan 2012
    Posts
    48
    Rep Power
    0

    Default Why is there an error message of the "append" ?

    Why is there an error message of the "append" ?-help.png

    Why is there a red line under the word "append"?
    this only occurred when i used jTextField. If i used jTextArea, there are no red lines under "append"

    Please help me. I had stuck at this for hours.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Why is there an error message of the "append" ?

    Please read the API as you would get your answer quicker and gain a valuable learning technique.

  3. #3
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,226
    Rep Power
    6

    Default Re: Why is there an error message of the "append" ?

    Read the API. There is no such method for JTextField since it is designed to support a single line of text. This is a convenience method for a JTextArea only.

  4. #4
    mathidioticz is offline Member
    Join Date
    Jan 2012
    Posts
    48
    Rep Power
    0

    Default Re: Why is there an error message of the "append" ?

    You mean the API specification?
    I did read the api, but i couldn't understand the information there..

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Why is there an error message of the "append" ?

    Quote Originally Posted by mathidioticz View Post
    You mean the API specification?
    I did read the api, but i couldn't understand the information there..
    That's a skill that you must hone then since without it you will fail. You simply look to see in the API if the method exists, and as camickr has told you, it does not exist for that class -- so you can't use it.

Similar Threads

  1. Error message "could not find the main class"
    By srwpchelp in forum New To Java
    Replies: 8
    Last Post: 12-23-2010, 09:15 PM
  2. "Simple" theme with error message
    By aruna.hcu in forum Web Frameworks
    Replies: 0
    Last Post: 07-14-2010, 05:32 PM
  3. Replies: 2
    Last Post: 12-02-2008, 11:06 AM
  4. Java Loader error message "UNC paths not supported"
    By Johnny562 in forum New To Java
    Replies: 1
    Last Post: 07-01-2008, 10:24 PM
  5. Strange error message "Source not found"
    By ppayal in forum Eclipse
    Replies: 0
    Last Post: 11-25-2007, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •