Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Problem with JApplet and HTML page??

  1. #1
    stack is offline Learning Programmer
    Join Date
    Mar 2007
    Posts
    42
    Rep Power
    0

    Question Problem with JApplet and HTML page??

    hi,

    I have a JApplet window which contains images and image icons.. and I have a problem because this window didn't appear in html page..

    i wrote these lines:

    <html>
    <applet code ="BB.class" width="900" height="600">
    </applet>
    </html>

    ..but the JApplet window didn't appear in the html page .. I see only asquare which contains X mart in the top left corner..

    Can you solve my problem??

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Do you have the Java plugin installed for your browser? In the bottom left corner of your browser does it display an error?

  4. #3
    stack is offline Learning Programmer
    Join Date
    Mar 2007
    Posts
    42
    Rep Power
    0
    The bottom left corner of the browser it displays :
    Loading Java Applet Failed..
    what is the solution of this problem??

  5. #4
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    You can try the following:

    Upgrade your browser [Get Firefox if you don't already have it]
    Upgrade your JRE
    Try running the applet from the console, see if any errors are displayed

  6. #5
    CygnetGames's Avatar
    CygnetGames is offline Programmer
    Join Date
    May 2007
    Location
    York, England
    Posts
    119
    Rep Power
    0
    Quote Originally Posted by stack View Post
    Loading Java Applet Failed..
    This error message probably means that one of the following happened:
    • Java could not find your class file - is it in the same directory as your html page? If not, you will need to use the "classpath" attribute in your applet tag.
    • Java could not find an image that you tried to load. If you tried to load an image in your init() or start() functions, make sure you gave java the correct path to the image.
    • Something else went wrong when initialising your applet. Check your init() and start() functions to make sure there are no errors.

    If you have tried these and it still won't load, just try to make a simple applet that just fills the background red, or something. Once you have this working, copy and paste your code into this applet in small sections. You should then be able to find your error.

  7. #6
    stack is offline Learning Programmer
    Join Date
    Mar 2007
    Posts
    42
    Rep Power
    0
    CygnetGames, I did every thing that you wrote but, the problem remains ...!!!

  8. #7
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    If you run your applet from the console it will display errors. Those errors can help deduce the problem.

  9. #8
    CygnetGames's Avatar
    CygnetGames is offline Programmer
    Join Date
    May 2007
    Location
    York, England
    Posts
    119
    Rep Power
    0
    Quote Originally Posted by stack View Post
    CygnetGames, I did every thing that you wrote but, the problem remains ...!!!
    You mean you couldn't even get an applet to colour the background red?

    Try copying the source code from an online tutorial and see if you can get their code to run. If you can't get a tutorial to work, post back describing exactly what you are doing and what results you get.

  10. #9
    stack is offline Learning Programmer
    Join Date
    Mar 2007
    Posts
    42
    Rep Power
    0
    the tutorial didn't work in the html page!!!

  11. #10
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Quote Originally Posted by Sidewinder View Post
    If you run your applet from the console it will display errors. Those errors can help deduce the problem.
    .

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-03-2011, 11:45 AM
  2. Problem with array in JApplet
    By Qistina Tajuddin in forum Java Help
    Replies: 1
    Last Post: 08-21-2011, 06:03 AM
  3. sectioning a page in html
    By SnydeMz in forum HTML Programming
    Replies: 4
    Last Post: 09-08-2010, 10:58 PM
  4. Replies: 1
    Last Post: 06-02-2010, 05:28 PM
  5. js to add sound in html page
    By edwin namisi in forum JavaScript and CSS
    Replies: 1
    Last Post: 04-19-2010, 03:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

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