Sign in to follow this  
Winterhell

[java] how to java applet inside java application

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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);
}
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this