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 41017

Summary: [JDK1.5.0] Toolbar buttons do not align with JDK 1.5 Metal L&F
Product: editor Reporter: _ pkuzel <pkuzel>
Component: -- Other --Assignee: issues@editor <issues>
Status: CLOSED DUPLICATE    
Severity: blocker CC: gtichy
Priority: P4 Keywords: JDK_SPECIFIC
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Toolbar screenshot
screenshot

Description _ pkuzel 2004-03-16 09:23:22 UTC
See attached screenshot. It looks like icons does
not have transparent background. Strange.
Comment 1 _ pkuzel 2004-03-16 09:24:20 UTC
Created attachment 13990 [details]
Toolbar screenshot
Comment 2 Miloslav Metelka 2004-03-16 09:53:21 UTC
I've double checked that the icons have transparent background in
gimp. The code that actually creates the button is JToolbar.add(Action
a) - it creates regular JButton instance so I assume the default
UIManager settings should be applied. Strange.
Anyway we should likely resolve this into promoD. Added Gabo to cc
whether he would have any clue.
Comment 3 Gabriel Tichy 2004-03-16 12:55:20 UTC
I don't have any idea why it doesn't work.
Comment 4 Milan Kubec 2004-03-16 13:09:54 UTC
I think that it applies to any toolbar button in IDE.
Comment 5 _ pkuzel 2004-03-16 13:20:42 UTC
I saw it only for editor. It uses gradient toolbar rendering. Other
toolbars do not (however rollovers show it).

java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b42)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b42, mixed mode, sharing)

Comment 6 Milan Kubec 2004-03-16 13:33:15 UTC
Created attachment 13997 [details]
screenshot
Comment 7 Milan Kubec 2004-03-16 13:34:16 UTC
I've attached screenshot showing the same behavior in Main window
toolbars.
Comment 8 David Simonek 2004-06-15 16:48:11 UTC
Milan, I'm seeing it only for editor toolbar, main window toolbars are
OK on Ocean LF. Passing back to editor guys.
Comment 9 Martin Roskanin 2004-07-22 12:42:17 UTC
already fixed.

JButton.setContentAreaFilled(false) is the answer :-)
The button will use gradient also after this.

*** This issue has been marked as a duplicate of 45486 ***
Comment 10 Marian Mirilovic 2011-06-09 09:51:16 UTC
v/c