• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Size of a combobox

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic