Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT Event

 
Ogwal Boniface
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Rob Spoor
Sheriff
Pie
Posts: 20532
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic