?
Solved

Applet to Application converter.

Posted on 1997-04-29
1
Medium Priority
?
264 Views
Last Modified: 2008-03-17
Dear sir,

  Can anyone tell me that there is any converter which can convert applet code to a standalone application?


thanks!

Benson
0
Comment
Question by:benson031397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
roy020697 earned 0 total points
ID: 1219963
All you need to do is

1. Add a main method to your applet:
public static void main( String argv[])
{
}

2. Create a window (or frame) in your main method in which to put
your applet code:
public static void main( String argv[])
{
  Frame f = new Frame( "My applet/application" );
}

3. Create an instance of the class for your applet
4. Add it to the frame
5. Call the init and start methods of your applet:
public static void main( String argv[])
{
  Frame f = new Frame( "My applet/application");
  MyAppplet a = new MyApplet();
   f.add( a );
   f.setVisible( true );
  a.init();
  a.start();
}

I don't know of any products which can do this for you (yet). Give it a try yourself!

-Roy

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question