• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mac Os X MenuBar Application Name

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was following this tutorial to make my swing application more Mac-like. Putting my swing menu on the mac menubar is no problem. The thing I can't seem to change is my application name. Instead of "com.website.package.class" I just want it to display my application name. According to the tutorial I should call:


This sadly doesn't work. When I run my program from the command line and set the property like this

it does work.

I really would like to set this property in the code itself which would allow me to make just one jar file for all platforms and would not require run scripts.

Is there a workaround for this problem?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you should really be doing to make the application more Mac-like is to use JarBundler -a free tool from Apple- to give it a native Cocoa wrapper. That'll also give the application a nice icon instead of the generic Java icon, and a proper application name.
 
Kim Mirtens
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I guess this is the only way. I wanted to save me the trouble of making OS specific versions, but using the jar builder is the only way it works nicely.
 
reply
    Bookmark Topic Watch Topic
  • New Topic