Dear Hans,
I cannot understand what are you asking??The following code works fine!!!
What is the confusion ???
make your class public else it will give error applet not intialised......
the following code works......
<pre>
import java.awt.*;
import java.applet.*;
/*
the applet code tag goes here
*/
public class tes extends Applet
{
private String txt="hello";
Button b=new Button("ll");
public void init()
{
add(new Label(txt));
add(b);
}
}
</pre>
Harpal
[This message has been edited by Harpal Singh (edited November 06, 2000).]