This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem of JComboBox:  RSS feed

 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
The popup portion of the JComboBox doesn't wide enough to display the whole text, so how to solve this problem?
Thanks.
 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using the setPreferredSize method on the JComboBox...
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sebastiaan Kortleven:
try using the setPreferredSize method on the JComboBox...

Thank you,I found a "steped jcombobox" here,that's what I'm talking about.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!