JAPI pointed out some missing methods in MetalComboBoxUI. I added/implemented them.
2005-11-22 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/plaf/metal/MetalComboBoxUI.java (configureEditor): Implemented. (unconfigureEditor): Implemented. (layoutComboBox): Implemented.
Index: javax/swing/plaf/metal/MetalComboBoxUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalComboBoxUI.java,v retrieving revision 1.8 diff -u -r1.8 MetalComboBoxUI.java --- javax/swing/plaf/metal/MetalComboBoxUI.java 7 Nov 2005 16:59:06 -0000 1.8 +++ javax/swing/plaf/metal/MetalComboBoxUI.java 22 Nov 2005 19:32:28 -0000 @@ -313,4 +313,40 @@ d.height + insetsH + 1); } + /** + * Configures the editor for this combo box. + */ + public void configureEditor() + { + ComboBoxEditor cbe = comboBox.getEditor(); + if (cbe != null) + { + cbe.getEditorComponent().setFont(comboBox.getFont()); + cbe.setItem(comboBox.getSelectedItem()); + cbe.addActionListener(comboBox); + } + } + + /** + * Unconfigures the editor for this combo box. + */ + public void unconfigureEditor() + { + ComboBoxEditor cbe = comboBox.getEditor(); + if (cbe != null) + { + cbe.getEditorComponent().setFont(null); + cbe.setItem(null); + cbe.removeActionListener(comboBox); + } + } + + /** + * Lays out the ComboBox + */ + public void layoutComboBox(Container parent, + MetalComboBoxUI.MetalComboBoxLayoutManager manager) + { + manager.layoutContainer(parent); + } }
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches