Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ComboBox drop down width

bjbcatsMay 29 2013 — edited May 31 2013
No matter what width I set for a combobox, the FIRST time I click to show the drop down list, the width of the dropdown is about 100px (irrespective of the width of the combobox itself). If you click off the drop down and re-open, it is sized correctly to the with of the widest string.

I've tried setting all manner of options in SceneBuilder, and also tried setting the prefWidth in a CellFactory, but makes no difference. I get the same behaviour on Windows or Linux.

I'm using this version of Java:

java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2013
Added on May 29 2013
3 comments
699 views