2

Is there a possibility to force JLists to display all items on one line? setOrientationLayout() does not give you that option.

Donald Duck
  • 7,638
  • 19
  • 69
  • 90
s.d
  • 3,868
  • 4
  • 35
  • 64

1 Answers1

4
list.setLayoutOrientation(JList.HORIZONTAL_WRAP);
list.setVisibleRowCount(1);
camickr
  • 316,400
  • 19
  • 155
  • 279