java - How to get custom space between Jlist item? -


i had add few images in jlist , showing them horizontal want increase space between images in list?could suggest me way it?

set fixed width , height jlist items.

list.setfixedcellheight(50); list.setfixedcellwidth(100); 

the setborder() method setting border insets. can add lines above make margin spaces arranged:

list.setborder(new emptyborder(10,10, 10, 10)); 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -