JDK-7025987 : Nimbus L&F increases insets unexpectedly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows,windows_7
  • CPU: x86
  • Submitted: 2011-03-09
  • Updated: 2011-04-25
  • Resolved: 2011-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b138Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
SYNOPSIS
--------
Nimbus L&F increases insets unexpectedly

OPERATING SYSTEMS
-----------------
Redhat Enterprise Linux 5
Windows XP

FULL JDK VERSION
----------------
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b132)
Java HotSpot(TM) Client VM (build 21.0-b03, mixed mode)

DESCRIPTION
-----------
Nimbus Look&Feel increases insets unexpectedly, resulting in a broken layout.

REPRODUCTION INSTRUCTIONS
-------------------------
1. Launch demo/jfc/SwingSet2/SwingSet2.jar
2. Switch Look&Feel to Nimbus via the drop-down menu.
3. Move to JButtonDemo.
4. Resize SwingSet2's window several times.

Observe the 'insets' becoming larger and larger.
I.E., Buttons move to the right, eventually leaving the visible part of the window completely.

Comments
EVALUATION The problem is in LoweredBorder from Nimbus L&F: it shares internal insets and allows to change them.
04-04-2011

EVALUATION This is a regerssion of 4129681 The minimized demo is attached, resize the frame to see the problem. Note that the titled border is incorrectly painted from the beginning.
01-04-2011

EVALUATION I reproduced it
11-03-2011