• Post Reply Bookmark Topic Watch Topic
  • New Topic

JCombobox size issue

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have a JCombobox with no items. I want to fix its size to a min size. I tried all ways by setting minimum, maximum, preffered size but its not working.
For more information I am using GridBagLayout, fill is NONE and weightx is 0. My Combobox gets populated at runtime, and I dont want size to be increased. Means items should get populated but default size should not change.

Hoping for reply.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!