PDA

View Full Version : Changing App Title (Java)




dws90
Mar 26, 2008, 11:42 AM
This is a rather basic question, so forgive me.

I'm making a simple Chinese Checkers program in Java using Eclipse. I want to make the app's title on the menu bar (right next to the Apple logo) display as "Chinese Checkers".

When I call the constructor for the JFrame with "Chinese Checkers" as the argument, it changes the title of the app in the center of the app's title bar. The name on the menu, however, remains packageName.className (in this case, "checkPack.Arena"). How do I change that to "Chinese Checkers"?

Thanks.



toddburch
Mar 26, 2008, 01:15 PM
See here http://forums.macrumors.com/showthread.php?t=251069

I google-searched macrumors with

menu bar apple java title

Todd

dws90
Mar 26, 2008, 02:41 PM
Thanks - 1-Xdock:name="Chinese Checkers"' seems to be what I need.