This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JComboBox

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic