Results 1 to 5 of 5
- 11-17-2011, 11:03 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 2
- Rep Power
- 0
The function append() not working.
For developing a calculator i need to use the 'append ()' to enter text into the textfield as shown in the tutorials.For example ,to add '1' to the textfield i need to write this code 'textfield.append("1")' which isn't workin in my case.....I've uploaded the screenshot here.......please help....why isn't it working?What should i do?
- 11-17-2011, 01:34 PM #2
Re: The function append() not working.
Please explain what "not working" means?why isn't it working?
Are there compiler errors?
Where is the variable text defined? What is it?
Is the append() method defined for that class? Look in the API doc to see.
- 11-17-2011, 01:55 PM #3
Member
- Join Date
- Nov 2011
- Posts
- 2
- Rep Power
- 0
Re: The function append() not working.
Yes there are compiler errors..........you can see it in the picture which i've posted.The variable name of the textfield is 'text'.This is the error thrown "the method append(string) is undefined for the type JtextField".
- 11-17-2011, 02:26 PM #4
Re: The function append() not working.
The error message seems very clear.the method append(string) is undefined for the type JtextField
Did you read the API doc for JTextField to verify that the error message was correct?
- 11-20-2011, 07:32 AM #5
Member
- Join Date
- Nov 2011
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
validurl function not working when I click the submit button
By kritijain in forum JavaServer Pages (JSP) and JSTLReplies: 7Last Post: 06-10-2011, 11:22 AM -
How to Append in file ?
By Hippo in forum New To JavaReplies: 2Last Post: 03-19-2010, 01:50 PM -
Possible? Callback function passed as arguments to another function
By TreyAU21 in forum Advanced JavaReplies: 3Last Post: 12-04-2009, 03:08 PM -
Static function to get current working directory
By Java Tip in forum Java TipReplies: 1Last Post: 06-23-2008, 02:13 AM -
JLabel append?
By Jononomous in forum New To JavaReplies: 0Last Post: 04-07-2008, 07:41 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks