Re: Why I can't add a JLabel object into JList/JComboBox?
- From: John O'Conner <john@xxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 16:21:57 GMT
RC wrote:
Can anyone tell me how to achieve my goal, have different background colors in a list?
The following article uses an example that displays colors in a JList. I think you should be able to pick up the sample code to solve your problem. Don't forget to leave a comment if the article helps.
http://java.sun.com/developer/technicalArticles/GUI/jlist/
Regards,
John O'Conner
.
- Prev by Date: Re: Scaling/Resizing 2D graphics in JPanel
- Next by Date: Re: Scaling/Resizing 2D graphics in JPanel
- Previous by thread: Editor / Renderer: data flow
- Next by thread: Pls Help: JMenu with 2 columns
- Index(es):