Strengthen JList to NOT flip at all?

Is there any way to get JLists display all the elements on the same line? setOrientationLayout() does not provide you this option.

+2
source share
1 answer
 list.setLayoutOrientation(JList.HORIZONTAL_WRAP); list.setVisibleRowCount(1); 
+4
source

All Articles