Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P4
-
Resolution: Duplicate
-
Affects Version/s: 6u5
-
Fix Version/s: None
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
CPU:x86
-
OS:windows_vista
Description
Left side of the editable JCombobox is having lesser space when compare to the right of the editable Jcombobox. Actually both the space should be of the same. Already a similar bug is filed which says that space is too high bug id . you can see the bug for more information. http://monaco.sfbay/detail.jsf?cr=6594640. I have attached the screen shot.
Step to reproduce
------------------
1) Run the above testcase.
2) type some long string into the editable Jcombobox. Select the text & observe that there is less space towards the left side of the combobox & there is a large space can be seen towards the right side. 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
Step to reproduce
------------------
1) Run the above testcase.
2) type some long string into the editable Jcombobox. Select the text & observe that there is less space towards the left side of the combobox & there is a large space can be seen towards the right side. 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
Attachments
Issue Links
- duplicates
-
JDK-6610132 NimbusLAF: Minor Cosmetic bugs round up for 6u10-b12
-
- Closed
-