Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox  RSS feed

 
Cathy Young
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to write a JComboBox with Swing which has fixed width, and the elements added to it can be longer (wider) than the JComboBox. So when the JComboBox gets focus, the list of elements are in a box which is wider than the "header" of the JComboBox.
Any links? Ideas?
Thanks!
--Cathy
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stepped Combo Box
That should do the trick.
 
Cathy Young
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
Stepped Combo Box
That should do the trick.

Thanks! That is exactly what I need.
--Cathy
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!