This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 136901

Summary: [NIMBUS] Frame for docked window is too small
Product: platform Reporter: Ondrej Langr <olangr>
Component: Window SystemAssignee: mslama <mslama>
Status: RESOLVED FIXED    
Severity: blocker CC: anebuzelsky, dsimonek, pchytil, saubrecht
Priority: P3 Keywords: L&F
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 120656    
Attachments: improper appearance of the docked window

Description Ondrej Langr 2008-06-10 12:30:19 UTC
The graphics/frame around name and icon of a docked window is too small. See the attachment for depiction.
Comment 1 Ondrej Langr 2008-06-10 12:31:27 UTC
Created attachment 62610 [details]
improper appearance of the docked window
Comment 2 mslama 2008-09-24 15:05:43 UTC
Problem here is that we use our own UI class derived from BasicToggleButtonUI <-- BasicButtonUI. But it misses important
code/features from SynthButtonUI. Possible solution: Derive our own subclass for Nimbus L&F from SynthButtonUI.
Unfortunately it means some code copy/paste from our SlidingButtonUI to new subclass.

Now we have NimbusSlidingButtonUI (NB) <-- SlidingButtonUI (NB) <-- BasicToggleButtonUI (Swing).

Fix would create NimbusSlidingButtonUI (NB) <-- SynthButtonUI (Swing) with some code copied from SlidingButtonUI to
NimbusSlidingButtonUI.

In this issue problem is that border is not set to button so button content looks clipped.
Comment 3 mslama 2008-09-24 15:24:45 UTC
Unfortunately javax.swing.plaf.synth.SynthButtonUI is not public class.... so my suggestion is not possible. I will ask
on nimbus mailing list what is preferred solution.
Comment 4 mslama 2008-09-25 12:36:50 UTC
Fixed. I use default button content insets from UIManager.getInsets("Button.contentMargins") which is
[top=6,left=14,bottom=6,right=14].

core-main #55a80d660381
Comment 5 mslama 2008-09-25 12:38:25 UTC
core-main #8fe68d035761 Remove System.out.println
Comment 6 Quality Engineering 2008-09-27 05:37:07 UTC
Integrated into 'main-golden', will be available in build *200809270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/55a80d660381
User: Marek Slama <mslama@netbeans.org>
Log: #136901: Use Button.contentMargins from UIManager to set margin for sliding button.