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??![]()
Do you have the Java plugin installed for your browser? In the bottom left corner of your browser does it display an error?
The bottom left corner of the browser it displays :
Loading Java Applet Failed..
what is the solution of this problem??
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
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.
CygnetGames, I did every thing that you wrote but, the problem remains ...!!!
If you run your applet from the console it will display errors. Those errors can help deduce the problem.
the tutorial didn't work in the html page!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks