PDA

View Full Version : Java 1.6 Beta issue with JButtons?




russellelly
Feb 20, 2008, 08:57 AM
Hi,

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).



jeremy.king
Feb 20, 2008, 10:29 AM
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.

russellelly
Feb 21, 2008, 03:44 AM
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.

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.