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.
I agree. Here's the link:
subject: hello string beind displayed again and again as i click on maximize button(applet)why is that so??
Event Handling Problem
scrollbars in a canvas-urgent
Some kind of fruitmachine problem...
Applet -Applet communication prb
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015