access control exception...
hi there,
i have an swing applet that displays an url and i m using jeditorpane to display that url on my browser and i get this exception
" java.security.AccessControlException:acces denied (java.net.SocketPermission 192.168.1.1 connect,resolve) "
how do i solve this problem.
here is my code :
import javax.swing.*;
import java.awt.*;
public class AppletB extends JApplet {
public AppletB()
{
try {
JEditorPane editorPane = new JEditorPane("http://192.168.1.1");
JScrollPane scrollpane = new JScrollPane(editorPane);
getContentPane().add(scrollpane, BorderLayout.CENTER);
}
catch (Exception urlmal)
{
JOptionPane.showMessageDialog(null,urlmal.toString(),"error",JOptionPane.WARNING_MESSAGE);
}
}
}

