[5766] in java-interest

home help back first fref pref prev next nref lref last post

RE: Repainting an applet ...

daemon@ATHENA.MIT.EDU (Per Danvind)
Mon Feb 26 04:54:49 1996

From: Per Danvind <perry@interbizz.se>
To: "java-interest@java.sun.com" <java-interest@java.sun.com>,
        "'Katsalis Nikolaos 537'" <katsalis@csd.uch.gr>
Date: Sun, 4 Feb 1996 11:47:01 +-100

Put the network communication in a separate class and run it in a
separate thread. That will give the applet time to repaint automatically
on its own when needed.

--
Per

----------
From: 	Katsalis Nikolaos 537[SMTP:katsalis@csd.uch.gr]
Sent: 	 den 24 februari 1996 18:38
To: 	java-interest@java.sun.com
Cc: 	katsalis@csd.uch.gr
Subject: 	Repainting an applet ...


	Hi,
		I am working with an applet that communicates using
 sockets. In the time of communication I want to repaint the applet.
 The applet has on it 3 panels each of which has a few components.
 If something hapens during the communications (i.e another window
 gets on netscape) the applet doesn't look nice, and I must wait
 for the communication to end in order the applet to be repainted.

	How can I force the repainting of the applet and all of it's
 components when I want to ?

 	I tried to call repaint() of all applets and components but the 
 applet does not be repainted.
	I also tried using: paintComponents(getGraphics()); 
 but it is also not working.


					Thanks in advance, 
						Nikos.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com



-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post