Skip to main content
gamedev.net
🔒 Locked

[java] how to java applet inside java application

Started by Winterhell Mar 12, 2009 at 10:01 AM 0 replies 2.1k views
Original Post
Winterhell
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.
DzzD
DzzD
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);
}
}

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.