aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes about JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about JTextField" Watch "about JTextField" New topic
Author

about JTextField

fei long
Ranch Hand

Joined: Apr 04, 2002
Posts: 48
Hi, i have a simple question about JTextField. Is there a method I can use to delete the contents previously typed in JTextField, here I add a action listener in this text field. What i want is after i press enter i want the text in field to be deleted so that i can just enter another text again.
thanks.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
setText("")
fei long
Ranch Hand

Joined: Apr 04, 2002
Posts: 48
thanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about JTextField