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

Summary: [70cat] Some icons at Variables view have a wrong size
Product: debugger Reporter: Michel Graciano <hmichel>
Component: CodeAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample image

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!