Results 1 to 2 of 2
Thread: return value on a button click
- 03-24-2011, 01:00 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
return value on a button click
hi,
I have a root class that makes a new instance of a mainmenu class
The mainmenu object simply just displays a GUI with options and buttons.
When a button is clicked on the GUI is there anyway of sending a value back to the root class (which identifies the button i.e. button text) from the button handler?
thanks in advance.
- 03-24-2011, 01:09 PM #2
it's easy. You can pass a refer by need object in main menu.
The same question is in this thread. Equivalent of PHP isset in JAVASkype: petrarsentev
http://TrackStudio.com
Similar Threads
-
Button click GUI question
By ZambonieDrivor in forum New To JavaReplies: 2Last Post: 11-29-2010, 07:48 AM -
SaveAs button click
By kasiram.p@gmail.com in forum AWT / SwingReplies: 2Last Post: 07-06-2010, 08:35 AM -
How can I display on Button click?
By ntagrafix in forum New To JavaReplies: 3Last Post: 11-04-2009, 12:05 AM -
How we can open a file with a click in button
By kostinio in forum AWT / SwingReplies: 2Last Post: 11-01-2009, 04:46 PM -
deselecting a button after the click.
By ramsrocker in forum New To JavaReplies: 10Last Post: 02-15-2009, 06:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks