I am having the problem of running the below
applet in the browser. I know that we have to sign the applet using Policy tool. I am not getting a clear picture of how to do that?
We are having command in Policy tool to do so. I have tried to sign the applet using the instructions given in website of Sun. But I couldn't achieve.
I would like to know the following,
1) What extent we can use the applet in Web without signing it? (With minimum features)
2) Is there anyother GUI based tool to do the same?
3) Will you pls send me the detailed info about how to make enable a applet using Policy Tool?
4) Is there any extra security coding necessary in the program?
Pls send me the detailed docs or procedures or samples for making the Applet work in browser...
Test.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class
Test extends JApplet
{
public void init()
{
Container contentPane = getContentPane();
// I dont want to use ImageIcon
// ImageIcon i = new ImageIcon(getImage(getCodeBase(), "swing.gif"));
Icon i = new ImageIcon("swing.gif","An animated GIF of Duke on a swing");
JLabel label = new JLabel("Swing!",i,SwingConstants.CENTER);
contentPane.add(label, BorderLayout.CENTER);
}
}
Test.html
<html>
<body bgcolor = '#0000ff'>
<applet code="Test.class" width="300" height="300">
</applet>
</body>
</html>