Dipak,
read a good article on the MVC architecture in Swing. Unless I'm mistaken
your repaint problems are down to the fact your model changes (TreeModel)
are not being propagated to your view (JTree).
One good place to look is:

http://manning.spindoczine.com/sbe

regards,
Neil

-----Original Message-----
From: Dipak Jha [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 19:54
To: [EMAIL PROTECTED]
Subject: Refreshment problem with JFrame


Hi,

I have a JFrame housing a JSplitPane. This JSplitPane, in turn, accomodates
a
JScrollPane that contains a JTree. A pretty long story that, but the problem
is
that whenever data in the tree changes, I'm being forced to make an
altogether
new JScrollPane with the new tree inside it in order to enforce refreshment.
The same dirty piece of logic has had to be used for other GUI components on
the frame. This works, but the speed is marred.
I was looking for a solution that involves some magic combination of
statements like validate, invalidate, paint, repaint or whatever.
I'm sure these statements would be featherweights compared to the unwieldy
block of code that I've been using till now.

Any help on this ??

Thanx in advance.

Dipak Jha

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing


**********************************************************************
This email is intended only for the addressee. This email
and any files transmitted with it may contain confidential
or privileged information. If you are not the named
addressee or the person responsible for delivering the
message to the named addressee, please contact 
[EMAIL PROTECTED]

This email has been scanned by MIMEsweeper.

Visit the Prebon Marshall Yamane web site at 
http://www.prebon.com
**********************************************************************
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to