The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

JTree Cell Editor/Renderer question

Posted by Matt Senecal on October 02, 2000 at 1:47 PM

I created a JTree that contains a custom object ("EditorWindow", that extends JPanel) at each node. To do this I had to create a custom TreeCellRenderer. The problem I'm having is that while I can add and remove nodes OK, components (JTextFields, etc) that I dynamically add to the individual EditorWindows do not appear in the GUI. I've checked in software, and an enumeration of all components that a given EditorWindow contains confirms that the components were added, but aren't being displayed. I'm thinking that this is a problem with my TreeCellRenderer, but I have absolutely no idea what to do. Can someone help me out?

Thanks!





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us