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 194218 - [70cat] Some icons at Variables view have a wrong size
Summary: [70cat] Some icons at Variables view have a wrong size
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 12:32 UTC by Michel Graciano
Modified: 2011-01-13 07:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample image (5.15 KB, image/png)
2011-01-11 12:33 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2011-01-11 12:32:37 UTC
[ BUILD # : 1aee2b7f8cad ]
[ JDK VERSION : 1.6.23 ]

Take a look at first and fourth icons, they have a wrong size which make the
toolbar ugly.
Comment 1 Michel Graciano 2011-01-11 12:33:26 UTC
Created attachment 104877 [details]
Sample image
Comment 2 Martin Entlicher 2011-01-11 13:26:28 UTC
For some strange reason the icons are displayed like this when they do not fit into the window. When the window is resized, the icons are corrected.
Comment 3 Martin Entlicher 2011-01-11 14:54:10 UTC
It's not about the icon size. Their size is the same.
It's about the *order* of methods that set properties on JButton!
Do not ask me why this fix works:
changeset:   186124:58d54592c9d9
http://hg.netbeans.org/main/rev/58d54592c9d9
Comment 4 Quality Engineering 2011-01-13 07:52:05 UTC
Integrated into 'main-golden', will be available in build *201101130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/58d54592c9d9
User: mentlicher@netbeans.org
Log: #194218 It's really unbelievable, but the order in which we call setMargin() and setBorder() *is* important. Always call setMargin() first!