dcsimg
JListBox
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krishna_Padave
Posted On:   Saturday, April 21, 2001 08:35 PM

How to add ScrollBar to Listbox & how to add color to item inside the listbox?

Re: JListBox

Posted By:   Sandip_Chitale  
Posted On:   Monday, April 23, 2001 02:20 PM

Add JList to a JScrollPane().

JList l = new JList();
JScrollPane sp = new JScrollPane(l);
// now add sp to a your application
// panel etc.

Read about ListCellRenderer for changing
colors etc. here -


http://java.sun.com/j2se/1.3/docs/api/javax/swing/ListCellRenderer.html

About | Sitemap | Contact