Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

russellelly

macrumors regular
Original poster
Jun 23, 2006
139
41
Glasgow, UK
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

macrumors 603
Jul 23, 2002
5,479
1
Holly Springs, NC
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

macrumors regular
Original poster
Jun 23, 2006
139
41
Glasgow, UK
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.