image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 19th, 2002, 10:19 AM
Mac OS X lover
 
Join Date: Jul 2002
Location: Bangalore, India
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
iluvosx is on a distinguished road
Unhappy Placing a Java app Menubar on the OS X menu bar

Hi folks !!
HELP !! HELP !!
I am completely stumped here. How do we create JMenubar in Swing which would position permanently on the OS X menu bar ? I went through the OS X-Java documentation and found that it does not provide any details on how to go about doing this. Any sample code for this would be a GOD-SEND !!!

Thanks.
Reply With Quote
  #2  
Old September 19th, 2002, 10:52 AM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
If you start your app like this it will work.

java -Dcom.apple.macos.useScreenMenuBar=true appname

When making double clickable applications wit MRJAppBuilder you can set this permanently for your app.

You DON'T get a truly global menu bar this way (or any other way I know of) the active window just displays it's menu bar at the right place, so you have to have the same menubar attached to every window.

Some guy at Apple promised to post code for having a global menubar, but still nothing at http://developer.apple.com/samplecod..._Code/Java.htm
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code a system menu bar item? michaelsanford Software Programming & Web Scripting 5 October 2nd, 2003 01:10 PM
Java reld : How to place Java Swing's menubar on the OS X main menu bar ? iluvosx Mac OS X System & Mac Software 2 August 21st, 2002 01:24 PM
Login pause for 20 sec. - displays menu bar icon jasonbarak Mac OS X System & Mac Software 0 April 18th, 2002 08:34 AM
MenuBar using java lelereb Software Programming & Web Scripting 1 September 24th, 2001 05:31 AM
The final menu bar solution! strobe Mac OS X System & Mac Software 33 April 10th, 2001 03:42 AM


All times are GMT -5. The time now is 07:01 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.