Patch for kjas, save some repainting
Koos Vriezen
koos.vriezen at xs4all.nl
Mon Dec 8 16:42:13 GMT 2003
Hi,
Small patch to reduce repainting. The showStatus(msg) method of KJASAppletPanel
is connected with the classloader, so it displays the classes it loads below
the animated bean. Now when the applet is shown this only triggers unnecessary
repaints esp. when applets show some loading progress like
http://www.shiatsu-austria.at/tree.htm.
Koos
-------------- next part --------------
Index: org/kde/kjas/server/KJASAppletPanel.java
===================================================================
RCS file: /home/kde/kdelibs/khtml/java/org/kde/kjas/server/KJASAppletPanel.java,v
retrieving revision 1.4
diff -u -3 -p -r1.4 KJASAppletPanel.java
--- org/kde/kjas/server/KJASAppletPanel.java 7 Mar 2003 12:07:17 -0000 1.4
+++ org/kde/kjas/server/KJASAppletPanel.java 8 Dec 2003 16:31:39 -0000
@@ -45,10 +45,11 @@ public class KJASAppletPanel extends jav
validate();
}
- public void showStatus(String msg) {
- this.msg = msg;
- repaint();
- }
+ public void showStatus(String msg) {
+ this.msg = msg;
+ if (status != RUNNING)
+ repaint();
+ }
public void paint(Graphics g) {
super.paint(g);
More information about the kfm-devel
mailing list