Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6933893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:53:26+00:00 2026-05-27T11:53:26+00:00

I have constructed a Swing Application that needs to be run from a browser.

  • 0

I have constructed a Swing Application that needs to be run from a browser. Here is the code for the HTML file, JNLP file, and the Swing Applications Code. Is there a clear reason why this is not working?

Its posted at http://www.nestroia.com/netbeans.html

Thanks, all help is greatly appreciated.

HTML

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8" />

        <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
        Remove this if you use the .htaccess -->
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

        <title>Nestroia.com</title>
        <meta name="description" content="" />
        <meta name="author" content="Artur Vieira" />

        <meta name="viewport" content="width=device-width; initial-scale=1.0" />

         <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and
         delete these references -->
         <link rel="shortcut icon" href="/favicon.ico" />
         <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
     </head>
     <body>
         <script src="http://www.java.com/js/deployJava.js"></script>
         <script> 
         var attributes = { code:'NetBeans_SwingFrame',  width:800, height:600} ; 
         var parameters = {jnlp_href: 'NetBeans_SwingFrame.jnlp'} ; 
         deployJava.runApplet(attributes, parameters, '1.6'); 
         </script>
    </body>
    </html>

JNLP

    <?xml version="1.0" encoding="UTF-8" ?>
    <jnlp spec="1.0+" codebase="" href="">
        <information>
            <title>NetBeans_SwingFrame</title>
            <vendor>Nestroia.com</vendor>
        </information>
        <resources>
            <!-- Application Resources -->
            <j2se version="1.6+"
              href="http://java.sun.com/products/autodl/j2se" />
            <jar href="NetBeans_SwingFrame.jar" main="true" />

        </resources>
        <applet-desc 
            name="NetBeans_SwingFrame"
            main-class="netbeans_swingframe.NetBeans_SwingFrame"
            width="800"
            height="600">
        </applet-desc>
        <update check="background"/>
    </jnlp>

Java

    public class NetBeans_SwingFrame extends JFrame{
        public NetBeans_SwingFrame(){
            setTitle("Nestroia");
            setSize(800,600);
            setLocation(0,0);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);

            JLabel text = new JLabel("This is where the Application goes.");
            this.getContentPane().add(text,BorderLayout.NORTH);

     }
     /**
     * @param args the command line arguments
     */
     public static void main(String[] args) {
           NetBeans_SwingFrame main = new NetBeans_SwingFrame();
     }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:53:27+00:00Added an answer on May 27, 2026 at 11:53 am

    The first thing I notice is that a JFrame should be launched using an application-desc in the JNLP, rather than an applet-desc. But for a far better validation than my eye can supply, use JaNeLA.


    It would also help immensely if you were to answer aardvarkk’s question to explain What does “not working” mean, specifically?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python Decimal doesn't support being constructed from float; it expects that you have to
Greetings, I have a particular object which can be constructed from a file, as
In my Swing application I have the problem that when creating a new instance
I am creating a Swing application with a JEditorPane that should display an HTML
I have constructed an XML tree structure of an XML file. I am able
I have been studying swing for developing gui applications since a few days. The
Here is my code I have written thus far, along with the errors I'm
I have integrated this Jfreechart Bar Demo with my swing application. I have put
I have a SWING UI that contains a button that creates a new SwingWorker
I am writing an application that requires a large amount of swing GUI components.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.