This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Event  RSS feed

 
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
Posts: 21092
85
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
Boost this thread!