Amol Brid
Posts: 43
Nickname: amolbrid
Registered: Feb, 2004
|
|
Re: how to use checkbox list
|
Posted: Jul 8, 2004 1:29 AM
|
|
Hi,
You cannot add checkbox(or any other component) directly to the JList. You have to create a class which implements ListCellRenderer interface and then set the instance of this class to JList by using setCellRenderer() method.
Each row in the JList will be rendered using the cell reneder set using setCellRenderer() method.
You can find a example for this is ListCellRenderer's java doc.
Regards, Amol Brid.
> how can i add checkboxes in jlist or checkboxlist at > runtime using javva swing
|
|