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 - [NIMBUS] Frame for docked window is too small
Summary: [NIMBUS] Frame for docked window is too small
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: L&F
Depends on:
Blocks: 120656
  Show dependency tree
 
Reported: 2008-06-10 12:30 UTC by Ondrej Langr
Modified: 2008-12-22 11:10 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
improper appearance of the docked window (49.61 KB, image/png)
2008-06-10 12:31 UTC, Ondrej Langr
Details

Note You need to log in before you can comment on or make changes to this bug.
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.