Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder jfreak53's Avatar
    Join Date
    May 2004
    Location
    Guatemala
    Posts
    477
    Thanks
    19
    Thanked 10 Times in 10 Posts

    JApplet on web page

    I am trying to get my new JApplet to display on a web page, html file.

    I am using NetBeans 6.9 for Ubuntu. I created a new project called "JavaApplication1", no main class. Then I added a new JApplet, with the default name of NewJApplet.java.

    So I did a clean and build to make sure the JAR under the "dist" dir is fresh and new. Then I created a new HTML file in the dist dir with the new JAR and put this inside:

    Code:
    <applet code="JavaApplication1.NewJApplet"
          archive="JavaApplication1.jar"
          width=640 height=480>
        </applet>
    I run the file and though the grey screen comes up in Chrome, my app is not there, none of my buttons nothing, just the gray frame.

    Any thoughts, what did I break? ha ha Thanks.
    "FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
    http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
    http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
    http://www.microtronix-tech.com -- Web design and programming

  • #2
    Regular Coder jfreak53's Avatar
    Join Date
    May 2004
    Location
    Guatemala
    Posts
    477
    Thanks
    19
    Thanked 10 Times in 10 Posts
    Ok, so now it seems to be running. It seems when I open Chrome fresh to load it's page it works, if not it doesn't. Well that's not the deal now.

    I am using MySQL library, when I compile the project it puts the mysql library under the lib folder in my dist folder, so should it auto load? It works when I run the project inside NetBeans. But on the page when I click on the button to load the MySQL content nothing loads.

    Do I need to include this library somehow?
    "FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
    http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
    http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
    http://www.microtronix-tech.com -- Web design and programming

  • #3
    Regular Coder jfreak53's Avatar
    Join Date
    May 2004
    Location
    Guatemala
    Posts
    477
    Thanks
    19
    Thanked 10 Times in 10 Posts
    Never mind we're good ha ha. I had to sign my app, self sign to be able to load libraries. Then I just loaded mysql.jar file in archive. We're good. Thanks.
    "FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
    http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
    http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
    http://www.microtronix-tech.com -- Web design and programming


  •  

    Posting Permissions

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