Java 1.6 Beta issue with JButtons?

Discussion in 'Mac Programming' started by russellelly, Feb 20, 2008.

  1. macrumors regular


    I'm trying to test an app written in Java using 1.6 libraries on OSX. I've downloaded the developer preview, and everything seems to work except the text of some JButtons is cut off with '...'. The rounded Aqua style buttons may be doing the damage, but that'd go against the write once run anywhere theory of Java somewhat. It runs fine under Linux, and I'm told under Windows too.

    Has anyone come across this issue? (It may have been an issue with 1.5, I don't have a program using JButtons and no 1.6 libraries to test).
  2. macrumors 603


    Most likely a font issue - each platform uses its own font, unless you are overriding it.

    Just make the button a little wider, or use a different look and feel thats more consistent across platforms.

    Write once run anywhere does NOT mean write once and it will look the exact same if you use native look and feel.
  3. macrumors regular

    Thanks. Will have a look into getting it a touch wider. Want the look and feel to be platform specific, so want to don't want to override Aqua in OSX.

Share This Page