• Post Reply Bookmark Topic Watch Topic
  • New Topic

Size of a combobox  RSS feed

 
Nirmal Mekala Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have two combo boxes in my UI along with other components. when a selection in the first combo changes, the second combo is loaded with values depending on the first combo.
The problem is the second combo is initially small due to empty elements. Only upon loading, the combo expands to the size of its contents. Can i set the initial size of the combo so that it doesnt appear as expanding when the elements are added to it.
Some more details of UI:
The UI consists of two combo boxes, Text field + button, Jtable + two buttons
The combos + text field+button are in one row. Jtable in second and two buttons in the last row. On the overall panel i have set Gridbag layout. In the first grid i again have Flowlayout to add the combo boxes.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!