Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i Change my java swing application title in Mac OS X title bar? [duplicate]

My Swing Java application works fine on Mac OS X, but its title in Mac's title bar appears like this "org.classes.MainClass" which is the main class's path of my application.

Can i change this title through code or in the Manifest file of my java application ?

like image 674
Brad Avatar asked Oct 24 '10 08:10

Brad


1 Answers

See http://www.oracle.com/technetwork/articles/javase/javatomac-140486.html for instructions.

It appears that this is to be done with -Xdock:name="Foo Bar"

like image 118
Thorbjørn Ravn Andersen Avatar answered Sep 22 '22 16:09

Thorbjørn Ravn Andersen