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
Post a Comment