Hello Members,
The following problem has troubled me for sometime now:
I have an applet called FileA.java. It has two classes both of which are JPanels. Both these JPanels are then added to the applet in the public class of FileA.java. I use BlueJ.
The program works well offline on my desktop. To post it online on my webpage, I used the "Create Jar File" option in BlueJ to create the FileA.jar file. I further checked the contents of FileA.jar by using the "jar tf FileA.jar" command and I see all the classes and .gif files I would need. I then created my FileA.html file as follows:
<title> FileA Applet</title>
</head>
<body>
<h1>FileA Applet</h1>
<hr>
<applet code="FileA.class"
width=500
height=500
codebase="."
archive="FileA.jar"
>
</applet>
<hr>
</body>
</html>
The FileA.html and FileA.jar files are under my public_html folder. So, there was no need for any codebase specification.
When I run the applet on my webpage, all I get is a blank screen. I would be grateful for any help.
Thank you!!