Skip to main content

Converting NetBeans Applications to Applets

2 replies [Last post]
Joined: 2008-08-24

I like the
lesson from the Java Tutorial which explains how to convert applications to
Does anyone know of a lesson anywhere which explains how convert a NetBeans
application to an applet, from within NetBeans, or even how to migrate objects
and code developed in a NetBeans desktop application over to a NetBeans web
Many thanks in anticipation.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-06-10

Assuming you created the application in NetBeans based on a JFrame (or JPanel, or other non-applet container), you can do the following:

1. Right-click the package containing your app and choose New | Other.
2. Select the Swing GUI Forms category and choose JApplet Form. (This template is one of several applet templates, but this one is the one you want to create a JApplet that you can design in the GUI Builder.)
3. In the editor window, select the tab for the form that you want to convert to an applet.
4. In the Inspector window, select the sub-components of the form and press Ctrl-C (or Ctrl-X) to copy them.
5. In the editor window, select the tab for the JApplet form that you have just created.
6. In the Inspector window, right-click the JApplet node and press Ctrl-V to paste the components.

For info on integrating an applet in a web application in NetBeans, see

For more NetBeans web app tutorials, see

Joined: 2008-08-24

Thank you.  That was just the pointer I was looking for.