Changing App Title (Java)

Discussion in 'Mac Programming' started by dws90, Mar 26, 2008.

  1. dws90 macrumors regular

    Jan 16, 2008
    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"?

  2. toddburch macrumors 6502a

    Dec 4, 2006
    Katy, Texas
  3. dws90 thread starter macrumors regular

    Jan 16, 2008
    Thanks - 1-Xdock:name="Chinese Checkers"' seems to be what I need.

Share This Page