[java] how to java applet inside java application

Started by
0 comments, last by DzzD 15 years, 1 month ago
Hi, I need to make and interactive Java application(to be run without a browser,etc) I read the way is to insert an Applet inside a Form ,but I'm not sure how to do it. I've made the applet with its functions start,stop,init,run,paint;loading images, and it works perfectly. I'm using the awt libraries and i dont know anything about swift.Thank you.
Advertisement
Quote:Original post by Winterhell
Hi, I need to make and interactive Java application(to be run without a browser,etc)
I read the way is to insert an Applet inside a Form ,but I'm not sure how to do it.
I've made the applet with its functions start,stop,init,run,paint;loading images, and it works perfectly.
I'm using the awt libraries and i dont know anything about swift.Thank you.


you dont need an applet ?! you can write a standalone Java application :
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World");
//and if you need a window Frame f=new Frame();
//f.setVisible(true);
}
}

This topic is closed to new replies.

Advertisement