JDK-6608005 : Nimbus L&F : Spinner & Editable JCombobox touches the border of the JToolbar
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2007-09-22
  • Updated: 2011-02-16
  • Resolved: 2008-02-15
Related Reports
Duplicate :  
Description
Spinner & Editable JCombobox touches the border of the JToolbar , this can be seen the 6u5_b03 promoted build as well as pit build. I have attached the screen shot.

Step to reproduce
------------------
1) Run the attached testcase.
2) Observe that Editable JComboBox in JToolbar which is in the north of the frame is touching the border of the JToolbar. The same can be seen on the JSpinner on the JToolbar which is on the south of the frame.

Comments
EVALUATION An alternative approach is to simply change the logic we use for determining the height of the handle icon in NimbusIcon. This would be a one-line fix (in addition to a one-line fix for adding margins to skin.laf). An additional point, this bug has nothing to do with JSpinner and JComboBox, per se, they just happened to be the ones used when the bug was discovered. It is not special to them.
11-02-2008

EVALUATION Toolbars with SynthUI have no spacing around the inner components, we need to extend SynthToolBarUI and add a property for insets for content and spacing betweem items.
29-09-2007