i have one Applet seperately without any main class,now i want to create one java main class(LIKE LOGIN PAGE) from that i want to the call applet
This is Applet main class i want call
public class Appletmain extends Applet
{
public Appletmain()
{
canvas = new Canvas(this);
option = new Option(this);
docu = new Docu(this);
route = new Route();
}
public void init()
{
setLayout(new BorderLayout(10, 10));
add("Center", canvas);
add("North", docu);
add("East", option);
add("South", route);
}
public Insets insert()
{
return new Insets(10, 10, 10, 10);
}
public void lock()
{
canvas.lock();
option.lock();
}
public void unlock()
{
canvas.unlock();
option.unlock();
}
Canvas canvas;
Option option;
Docu docu;
Route route;
}
This my java main method
public class main {
public static void main(String[] args) {
Appletmain b=new Appletmain();
}
}