Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2230
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Subject | hooking up arrays of List |
| Message-ID | <gt14c35gk3c2arnvcmeee5tmic7a8onlti@4ax.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:37 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
I have doubly dimensioned arrays of widgets. I would like to set the
up with ChangeListeners -- each individual e.g.
rgbSlider[0][0].addChangeListener( new ChangeListener() {
/**
* Invoked when the target of the listener has changed its
state.
*
* @param e a ChangeEvent object
*/
public void stateChanged( ChangeEvent e )
{
int value = rgbSlider[0][0].getValue();
rgbDecSpinner[0][0].setValue( value );
}
} );
What is the cleanest way to pass the two subscript parameters to the
stateChanged method? or concoct a common listener that handles all 6
widgets?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
hooking up arrays of List "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000 Re: hooking up arrays of "Thomas Hawtin" <thomas.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
csiph-web