aspose 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
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 4202
    
    3

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JPanel with some child components inside JList.
 
Similar Threads
JList Item Not Getting Mouse Clicks
Drag and Drop cannot access inside content
Multiple components in cell of a JTable
Problem with MouseEvents
JPanel over JTextField