• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

howto increase row height in JList look and feel

 
Rodrigo Alvarez
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create on a custom Swing look and feel for JList with an increased row height, but obviously I'm not doing things correctly : the modification is not correctly taken into account when displaying a JComboBox (the JComboBox uses a JList to display things in its Popup).

Could anybody tell me how to correctly increase the size of a row in a JList Look and Feel


Here is the snipet of my ListUi that increases the row height :



This works perfectly for all the JList I put in my application. In the JComboBox's, the JList correctly uses the increased row height but the size of the Popup containing it is computed using the default row height. For example, if the default row height was 35 and mine was 50 and I had 2 elements in the JCombobox popup, the JList would have 2 rows of height 50 but be displayed in a Popup of total height 70 (and a scroll bar).


Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic