2

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

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
s.d
  • 4,017
  • 5
  • 35
  • 65

1 Answers1

4
list.setLayoutOrientation(JList.HORIZONTAL_WRAP);
list.setVisibleRowCount(1);
camickr
  • 321,443
  • 19
  • 166
  • 288