• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPanel with some child components inside JList.

 
sriram krishna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic