A DESCRIPTION OF THE PROBLEM : The border which is supposed to paint around a combo box is not painted instead text field is covering the combobox border. REGRESSION : Last worked in version 10.0.1 ---------- BEGIN SOURCE ---------- import javax.swing.*; import javax.swing.plaf.basic.BasicComboBoxEditor; public class ComboUI { public static void main(String[] args) throws ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException, IllegalAccessException { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); JFrame frame = new JFrame(); JPanel panel = new JPanel(); JComboBox comboBox = new JComboBox(new Object[] {"apple", "ball"}); comboBox.setEditable(true); //Reproducible as BasicComboBoxEditor call's setBorder(null) comboBox.setEditor(new BasicComboBoxEditor()); panel.add(comboBox); frame.add(panel); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); } } ---------- END SOURCE ---------- FREQUENCY : always
|