3435363738394041
public class Test4711996 { public static void main(String[] args) { JColorChooser chooser = new JColorChooser(); AbstractColorChooserPanel[] panels = chooser.getChooserPanels(); chooser.removeChooserPanel(panels[0]); chooser.updateUI(); } }
377378379380381382383384385386387
ComponentOrientation o = (ComponentOrientation) e.getNewValue(); JColorChooser cc = (JColorChooser) e.getSource(); if (o != (ComponentOrientation) e.getOldValue()) { cc.applyComponentOrientation(o); cc.updateUI(); } } } }