com.glaivestone.javax.swing
Class SwingPatches

java.lang.Object
  |
  +--com.glaivestone.javax.swing.SwingPatches

public class SwingPatches
extends java.lang.Object

Miscellaneous patches and workarounds for Swing problems.

Author:
Deb Lewis

Method Summary
static void installComboBoxModel(javax.swing.JComboBox aComboBox, javax.swing.ComboBoxModel aModel)
          Set the model of a combo box component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

installComboBoxModel

public static void installComboBoxModel(javax.swing.JComboBox aComboBox,
                                        javax.swing.ComboBoxModel aModel)
Set the model of a combo box component.

Workaround for a Swing bug known to occur in JDK 1.2 and JDK 1.3, where the standard JComboBox#setModel operation apparently smashes the client's selection in the model when it is installed in the component.


GFL 1.1 API