File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JPanel with some child components inside JList. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPanel with some child components inside JList." Watch "JPanel with some child components inside JList." New topic
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: 4664
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPanel with some child components inside JList.