File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes AWT Event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "AWT Event" Watch "AWT Event" New topic
Author

AWT Event

Ogwal Boniface
Greenhorn

Joined: Oct 20, 2009
Posts: 7
Dear Colleagues,
Consider the code below:
I like this to return (after click OK button) whatever someone enters in the textfield into a new label:
Example: Enter Text: ****** [OK]
You Entered: ******

Thanks for your help.




~~Great minds read, ask and then share~~
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Check out ActionListener. You may want to consider switching from AWT to Swing though; Swing is more powerful and looks better on most systems.

Moving to AWT / Swing.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AWT Event