Solved

Applet to Application converter.

Posted on 1997-04-29
1
251 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 78
Apps blocked by Java 9 81
Windows 10 IE Certificate Issue 10 47
Adding multiple JVM environments to RedHat 6 7 23
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

803 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