1. Should ChangeListener/ChangeEvent be more top-level? coderanch.com |
2. ChangeListener problem coderanch.com |
3. ChangeListener Problem coderanch.comHello, Can someone spot what is wrong with my code. Only the timePeriod JSpinner produces a System.out.println() - the others don't and I can't see why. Thanks in advance. // JSpinner ChangeListeners. ChangeListener changeListener = new ChangeListener() { public void stateChanged( ChangeEvent event ) { SpinnerModel source = ( SpinnerModel ) event.getSource(); if ( source.equals( periodModel ) ) { System.out.println( "periodModel ... |
4. ChangeListener, ActionListener, ItemListener (Swing) coderanch.comThere are appropriate times for using each of the listeners you've listed. They each serve a specific purpose and are not simply differently named functions providing the same capability as your question implies. Read their documentation and review the examples for each for a better understanding of them. My designs typically use ActionListeners. I'm not sure what you mean by "Swing ... |
5. Implementing multiple listeners (ActionListener and ChangeListener) coderanch.com |