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.
The graphics/frame around name and icon of a docked window is too small. See the attachment for depiction.
Created attachment 62610 [details] improper appearance of the docked window
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.
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.
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
core-main #8fe68d035761 Remove System.out.println
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.