A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
hello string beind displayed again and again as i click on maximize button(applet)why is that so??
Joined: Aug 01, 2009
Nov 25, 2009 01:43:03
code=applet1.class width=200 height=200>
public class applet1 extends Applet
public void init()
b1=new Button("Click Here!");
public void paint(Graphics g)
g.drawString("Hello from java",60,100);
public void stop()
public void destroy()
Hello is dislayed again when i click on maximise button ,Why is that happening
Joined: Mar 22, 2005
Nov 25, 2009 08:33:58
The paint method may be called multiple times - every time the JVM thinks that part of the GUI need to be redrawn, even when you'd think that there's no need for it. Your code should not make any assumptions about how often that will happen.
Ping & DNS
- my free Android networking tools app
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: hello string beind displayed again and again as i click on maximize button(applet)why is that so??
Event Handling Problem
Some kind of fruitmachine problem...
scrollbars in a canvas-urgent
Applet -Applet communication prb
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014