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 69391 - [50cat] Icons provided by JOptionPane on Mac OS X wrong
Summary: [50cat] Icons provided by JOptionPane on Mac OS X wrong
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2005-11-27 11:04 UTC by lordy
Modified: 2012-04-16 13:49 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
patch of core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java (3.29 KB, patch)
2005-11-27 11:06 UTC, lordy
Details | Diff
patch of core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java (5.39 KB, patch)
2005-11-27 11:07 UTC, lordy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lordy 2005-11-27 11:04:47 UTC
[ JDK VERSION : 1.5.0_05 ]

How you can read on http://developer.apple.com/
documentation/Cocoa/Conceptual/Sheets/Concepts/
AlertBadging.html Mac OS X only supports two types of alert 
dialogs:
*  A standard alert with an application icon
*  A caution alert with the caution icon and little application icon

But the implemention of in the Java VM fulfilled that not. The 
implemention show the symbols like http://java.sun.com/docs/
books/tutorial/uiswing/components/dialog.html#features only 
in a Mac OS X version.

The functionality is easy to implement. Because of the netbeans 
plattform we always have a application icon we can use.

So i use in the frist patch version org/netbeans/core/startup/
frame48.gif to get the netbeans plattform application icon. Scal 
it and use it for errorIcon, informationIcon and questionIcon. 
Also produce caution icon for warningIcon.

The secound version of the patch get the application icon from 
the Mac OS X Dock. I always wonder why apple don't do it this 
way... To use this, /System/Library/Java must be in the 
classpath, btw the technics based on Apple Application Menu 
(ide/applemenu) ApplePopupFactory.java.
Comment 1 lordy 2005-11-27 11:06:20 UTC
Created attachment 27317 [details]
patch of core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java
Comment 2 lordy 2005-11-27 11:07:37 UTC
Created attachment 27318 [details]
patch of core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java
Comment 3 David Simonek 2008-10-22 12:42:28 UTC
Umm, sorry for not paying attention to your patches earlier, too much issues. Passing to saubrecht to try on Mac if
patches are still applicable and working, thanks.

But wait, is it OK to override JDK impl in such way, wouldn't it be better to file bug against Apple JDK impl also?
Comment 4 Stanislav Aubrecht 2012-04-16 13:49:09 UTC
JDK should provide correct icons - closing