Results 1 to 2 of 2
  1. #1
    coolman50544 is offline Member
    Join Date
    Apr 2014
    Location
    Miami, FL
    Posts
    47
    Rep Power
    0

    Question My applet is not loading.

    I am seeing only the heading in <h1></h1> tags, and that's it. The rest of my page is blank, so could someone please help?

    Here is the code for the HTML document:
    XML Code:
    <!DOCTYPE html>
    
    <html>
        <head>
            <title>Payment Application</title>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
        </head>
        <body>
            <div>
                <h1>Payment Applet</h1>
                <script src = "https://www.java.com/js/deployJava.js"></script>
                <script>
                    var attributes = {
                      code: 'PaymentApplet.class',
                      archive: 'ch17_ex1_Payment.jar',
                      width: 280,
                      height: 160
                    };
                    var parameters = {};
                    var version = '1.8';
                    delpoyJava.runApplet(attributes, parameters, version);
                </script>
            </div>
        </body>
    </html>
    Here is the code for my JApplet class.

    Java Code:
    package murach.ui;
    
    import javax.swing.JApplet;
    
    public class PaymentApplet extends JApplet
    {
        @Override
        public void init() {
            PaymentPanel panel = new PaymentPanel();
            this.add(panel);
        }
    }

  2. #2
    coolman50544 is offline Member
    Join Date
    Apr 2014
    Location
    Miami, FL
    Posts
    47
    Rep Power
    0

    Default Re: My applet is not loading.

    Never mind this thread, I had a typo.

Similar Threads

  1. Png loading applet
    By verd in forum AWT / Swing
    Replies: 0
    Last Post: 07-26-2012, 09:00 PM
  2. Loading Applet in a web browser
    By techbossmb in forum Java Applets
    Replies: 2
    Last Post: 09-30-2009, 02:57 AM
  3. Loading image in applet
    By syarizma in forum Advanced Java
    Replies: 0
    Last Post: 08-06-2009, 10:02 AM
  4. Why is one applet loading but the other isnít?
    By spmchugh82 in forum Java Applets
    Replies: 1
    Last Post: 01-26-2009, 04:39 PM
  5. Java Applet loading bar
    By genette in forum Java Applets
    Replies: 2
    Last Post: 12-27-2007, 04:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •