Swings standalone to Applets

I have a standalone swings application and i need to convert this into applets that can be executed on web browser. The main class in swings GUI extends JFrame and that depends on several other files in different packages.

Basically, my GUI has nicely placed menus and buttons with icons on it and flowcharts are drawn.There are also message boxes popping up.

I have read through various topics in the forum and i found out that i might have to do the following.

1.Extend the main class to JApplet and replace the main class with init.

2.Instead of adding on the contentpane in swings, we now add by the applet itself using add() command.

3. Include main file and related jar files in applet tag.

The same is found at

http://java.sun.com/docs/books/tutorial/deployment/applet/getStarted.html

I was thinking if it as simple as this.Because as i understand , applets do not have full functionalities like swings. I mean that there are classes such as IconImage for images on icon and Jdialog for message boxes.There are not present in applets i think.

My question is

1.Does doing above three steps will solve the purpose and will the GUI remains exactly the same?.

2.If not, how do i get message boxes and icon images with the applets.?

Thanks a lot

[1326 byte] By [englewooda] at [2007-11-27 10:33:34]
# 1

Yes, the 3 steps should be all that are necessary, as long as you use a plugin with Swing included. For instance version Java 1.5 version plugin. If you are trying to run the applet directly in a browser, the browser probably won't support Swing.

JohnBranda at 2007-7-28 18:23:33 > top of Java-index,Desktop,Core GUI APIs...
# 2

Thanks John for the reply.

I am not sure about the plugins.

Iam actually want to execute them on the webbrowser.

I have written simple applets based on swings.They have JApplet instead of Applet.I could able to execute them on browser.Can i now say that my browser supports swings?

If not, how can i make my browser execute swing based applets.

This applet would talk with the servler which would then talk with the database.A information is displayed on the GUI from the database.

englewooda at 2007-7-28 18:23:33 > top of Java-index,Desktop,Core GUI APIs...
# 3

It can be trickier to get it to work through the browser without using

a plugin. You may need to add a swing jar file to the classpath for the applet. I forget what this jar file is called.It has been many years since we used this approach.

JohnBranda at 2007-7-28 18:23:33 > top of Java-index,Desktop,Core GUI APIs...