We help IT Professionals succeed at work.

Decorating and effectively formatting JLists!

snajalm
snajalm asked
on
How can I employ formating JList Elements??!  How can I decorate elements to look better and how can I have them come up in stripes for the use to distinguish each element from the other??!  In each element I currently use html code but is it the only way that's done??!
Comment
Watch Question

Awarded 2011
Awarded 2011
Commented:



These are  examples of using ListCellRenderer
http://www.java2s.com/Tutorial/Java/0240__Swing/CreatingaComplexListCellRendererfonticonandcolor.htm

http://www.java2s.com/Tutorial/Java/0240__Swing/AddyourownListCellRenderer.htm

14. 41. 4. Creating a Complex ListCellRenderer: font, icon and color

there are cell rederers, borders and infact you can override the look & feel by providing your own UI class to UIManager

Author

Commented:
Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.