Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java cosmetics

800965Jul 4 2011 — edited Jul 10 2011
Hi gurus,

I'm working on a small app and I'm a Mac user. My question is this:

How can I tweak certain visual details of the app so that:
1. On a Mac I have the JMenuBar located on top of the screen instead of top of the JFrame.
2. On a Mac I have the main class name in the top menubar replaced by my own menu item name.
3. On a Mac I have an own custom dock icon / app icon, which I understand should be associated somehow with the executable jar file.
4. On Windows and Linux I have ditto, a custom taskbar icon (probably associated with the executable jar file).
5. On a Mac I have nice Cocoa like toolbar with buttons, I see that Netbeans does it, and as far as I know it is written entirely in Java, so I figure it is possible but how?

So far I only discovered I can execute Mac related code by this check:
if (System.getProperty("mrj.version") != null) {
            //Mac code goes here.
        }
but I don't know what next.

I know these are cosmetics, but I find it important, I want to make my app complete.

Thanks,
PR.

Edited by: Aardenon on Jul 4, 2011 7:30 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2011
Added on Jul 4 2011
7 comments
133 views