Reputation: 4185
Is there a possibility to force JLists
to display all items on one line? setOrientationLayout()
does not give you that option.
Upvotes: 2
Views: 245
Reputation: 324108
list.setLayoutOrientation(JList.HORIZONTAL_WRAP);
list.setVisibleRowCount(1);
Upvotes: 4