Hi,

I need help urgently with JTree class of the swing package.

I have a JTree and each node in the tree represents a type of a Java
File. It can be a servlet, ejb, JSP of a simple helper class.

If it is a web component then double clicking on the component shows the
corresponding descriptor. Here is where the problem arises. If I change
the name of the file ( I am talking about a name displayed on the view)
I have a problem.

If the name is longer then the previous name, then I see only a part of
the name followed by ...

What I am doing is That I have  a refresh method in my treeManager
class. This method is called when I save a descriptor. The method first
od all stores the selection path and then calls the associated reload
method of the models used.

After reloading I set the selection path back to the one stored.

If I collapse the tree and then Open it again the changes are perfect,
however I want to keep the tree expanded and make the user see the
change.

Any help would be welcomed....

Irfan Ahmed.
begin:vcard 
n:Ahmed;Irfan
tel;home:080 5455538
tel;work:080 229 8989 Ext 27726
x-mozilla-html:TRUE
url:www.iplanet.com
org:<img src="http://www.iplanet.com/images/vcards/iplanetRG1.gif";>;Sun | Netscape Alliance 
version:2.1
email;internet:[EMAIL PROTECTED]
title:Member Technical Staff
adr;quoted-printable:;;Sun Microsystems,=0D=0A2nd Floor, Divyasree Chambers,=0D=0AOff Langford Road,=0D=0AShantinagar;Bangalore;Karnataka;560 025;INDIA
fn:<b><i>Irfan Ahmed</i></b>
end:vcard

Reply via email to