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

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
In the latest Java update, the combo boxes we use for our app are broken, they display the last 3 characters as "..."(which is weird since well, ... is 3 cahracters :cool: )

Anyway, is there a way to set the size and not have it change when the selected item changes? If I could fix that then I can fix the rest of the problems.
 

toddburch

macrumors 6502a
Dec 4, 2006
748
0
Katy, Texas
Did you look at the methods of the Component class, from which JComboBox is a subclass? There are several methods to get and set size.
 

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
Did you look at the methods of the Component class, from which JComboBox is a subclass? There are several methods to get and set size.

Tried all those. While they set the size correctly when they are first called, after the selection is changed once the OS seems to take over and resize it how it sees fit, no matter what I ask.

I even added an item selection listener to try to change the size when a selection occurs, but the OS so helpfully ignores my request.....
 

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
What layout manager are you using? What JVM release?

Null layout manager and the latest and greatest from Apple, however neither of those are really the problem, the problem was me being a bit of a doof and not realizing that the box was being resized somewhere else.

Thats what you get for having legacy code interface with a GUI via CORBA...

Seems to work now. The lesson is null layout manager == teh hard to port
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.