Editable JComboBox Popup is 1 to 2 pixel wider than JComboBox textfield. This can be observed only in pit build. It looks fine 6u5_b03 promoted build. Hence its a regression . I have attached screen shot of the same. The bug is reproduced in all platform.
Step to reproduced.
------------------
1) Run the testcase.
2) Click on the arrow button of the editable comboBox & observe that popup is wider than the textfield. If you see the same then the bug is reproduced.
source begin
-------------------
import javax.swing.JFrame;
import javax.swing.JComboBox;
public class NimusPITBuildJComobBoxBus {
private JFrame frame=null;
private JComboBox comboBox=null;
NimusPITBuildJComobBoxBus(){
frame = new JFrame();
frame.setLayout(new java.awt.FlowLayout());
comboBox = new JComboBox();
comboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "NimbusLAFItem 1", "NimbusLAFItem 2", "NimbusLAFItem 3", "NimbusLAFItem 4", "NimbusLAFItem 5", "NimbusLAFItem 6", "NimbusLAFItem 7", "NimbusLAFItem 8", "NimbusLAFItem 9", "NimbusLAFItem 10" }));
comboBox.setEditable(true);
frame.add(comboBox);
frame.pack();
frame.setVisible(true);
}
public static void main(String []args){
javax.swing.SwingUtilities.invokeLater(new Runnable(){
public void run(){
new NimusPITBuildJComobBoxBus();
}
});
}
}
-------------------
source end