A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
Always learning Java, currently using Eclipse on Fedora.
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
ContainerListener not firing from a JPanel contained within a JDialog
pop up menu
Reference to the outer class
Having difficulty sizing a viewport to fit inside a JDialog...any suggestions?
setAction and addActionListener
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015