I am writing a Java Swing Application. It consists of a graphing tool which I added as a library. It works fine as a desktop application. However, I'm trying to convert this application into an applet and the graphing frame won't come up on the browser. The code for the invoking the graphing frame is:
double x[] = {1,2,3,4,5,6,7,8};
double y[] = {1,0,1,0,1,0,1,0};
plot.addLinePlot("plot", Color.BLUE, x, y);
JFrame frame = new JFrame("A Plot Panel");
frame.setSize(1400, 730);
frame.setContentPane(plot);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
I typed the same lines in the applet but it won't work in the browser. How do I make this work in an applet?