• Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox: small button, big popup ?  RSS feed

 
PierreArnaud Galiana
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set a different width for the arrow button and the popup of a JComboBox ?


I looked at javax.swing.plaf.ComboBoxUI and its subclasses, but it's getting deep in the API, and I have a kind of "the deeper the more dangerous" feeling...
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This site might have an example. Look at the stepped combo example. SwingExamples
 
PierreArnaud Galiana
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great, thanks !

well, now I'll have to refine my web search methods... or get a better search endurance ; )
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!