Solved

Applet to Application converter.

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

691 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