Hy all,
i have aproblem, i made a simple applet that works fine at a first glance,
so i just wanted to add some drawing on it like :
[CODE=java]
class Ap extends java.applet.App let {
java.awt.Graphi cs g;
public void start() {
g = getGraphics();
paint(getGraphi cs());
getGraphics().d rawString("ok let's get it on !!",53,94);
}
public void paint(java.awt. Graphics g) {
getGraphics().d rawString ("paint()",33,1 20);
g = getGraphics();
}
}
[/CODE]
so put this applet in a page and see that it will only paint "paint()" , not what i wrote inside start(), if i did the same with a windowed component like frame/jframe/window it had printed both "ok lt's get it on " and "paint ()"
and i want to have it done outside paint() as i need adtion triggered paintings, so i cannot rely only on paint
Kind Regards !
i have aproblem, i made a simple applet that works fine at a first glance,
so i just wanted to add some drawing on it like :
[CODE=java]
class Ap extends java.applet.App let {
java.awt.Graphi cs g;
public void start() {
g = getGraphics();
paint(getGraphi cs());
getGraphics().d rawString("ok let's get it on !!",53,94);
}
public void paint(java.awt. Graphics g) {
getGraphics().d rawString ("paint()",33,1 20);
g = getGraphics();
}
}
[/CODE]
so put this applet in a page and see that it will only paint "paint()" , not what i wrote inside start(), if i did the same with a windowed component like frame/jframe/window it had printed both "ok lt's get it on " and "paint ()"
and i want to have it done outside paint() as i need adtion triggered paintings, so i cannot rely only on paint
Kind Regards !
Comment