-
Bug
-
Resolution: Fixed
-
P3
-
9, 10, 11
-
b17
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8253324 | 11.0.10-oracle | Prasanta Sadhukhan | P3 | Resolved | Fixed | b01 |
JDK-8249042 | 11.0.9 | Prasanta Sadhukhan | P3 | Resolved | Fixed | b01 |
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
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
- backported by
-
JDK-8249042 [Windows] JComboBox change in ui when editor.setBorder() is called
-
- Resolved
-
-
JDK-8253324 [Windows] JComboBox change in ui when editor.setBorder() is called
-
- Resolved
-