| Author |
JPanel with some child components inside JList.
|
sriram krishna
Greenhorn
Joined: Nov 21, 2011
Posts: 6
|
|
Hi,
I have a JPanel with some other components inside (i.e buttons, check boxes etc etc). Using ListCellRenderer i have implemented a JList of these JPanels. But the mouse events reaches up to the panel objects inside the list. If i want to make work the components inside panel objects, how to transfer the mouse events of JList to those components inside the panel ??
Thank you.
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4202
|
|
JList only renders its content. For editable content, which is what you want, use a single column JTable with a custom renderer and editor.
If you have a problem implementing that, post a SSCCE (Short, Self Contained, Compilable and Executable) example for better help sooner.
|
luck, db
There are no new questions, but there may be new answers.
|
 |
 |
|
|
subject: JPanel with some child components inside JList.
|
|
|