A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Swing / AWT / SWT
Joined: Jan 11, 2011
Feb 10, 2011 18:19:03
I have a GUI in one class that makes a custom
box come up. However, that
box is in another class. Can I make two action listeners (1 per class) and have them both work?
For example, it would be something like
ActionListener action = new ActionListener();
in the first class. It would call the action listener of the second class, the
If not, then how would I solve this issue?
Joined: Oct 24, 2010
Feb 10, 2011 18:36:00
Show us what you've tried so far and describe what's not working.
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Joined: Oct 13, 2005
Feb 11, 2011 03:36:32
But if it's a GUI, we usually discuss them elsewhere, so I shall move this discussion.
I agree. Here's the link:
subject: Action Listeners
Having difficulty sizing a viewport to fit inside a JDialog...any suggestions?
pop up menu
Reference to the outer class
ContainerListener not firing from a JPanel contained within a JDialog
setAction and addActionListener
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013