aspose file tools
The moose likes Swing / AWT / SWT and the fly likes AWT Event Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 19214

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: AWT Event
 
Similar Threads
applet problem
validating awt textfields
Getting sql error [Microsoft ][odbc microsoft access driver]numeric index out of range
Applet not displaying correctly
Help,Components inside my Frame would not be displayed until maximized.