Hi Everyone,
I wrote an applet that uses tabbedpanes and a sql connection. I wrote it in Eclipse, it complies and shows the applet in the eclipse browser but when I go to launch the applet in a web browser is fails to load. Would anyone be able to provide insight as to why this would happen.
The applet code is as follows (I gutted the code because it is really long)
HTML is as follows
Thanks for you time!
I wrote an applet that uses tabbedpanes and a sql connection. I wrote it in Eclipse, it complies and shows the applet in the eclipse browser but when I go to launch the applet in a web browser is fails to load. Would anyone be able to provide insight as to why this would happen.
The applet code is as follows (I gutted the code because it is really long)
Code:
import javax.swing.JButton;
import javax.swing.JTabbedPane;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JApplet;
import javax.swing.JComponent;
import java.awt.Dimension;
import javax.swing.JRadioButton;
import java.awt.*;
import javax.swing.*;
import java.awt.event.KeyEvent;
import javax.swing.border.*;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
public class tabbed_test_applet_09 extends JApplet implements ActionListener
{
private static final long serialVersionUID = 1L;
//class variables are declared here
public void init()
{
//objects are added to the panels the panels are then added to the tabbed panes
}
public void actionPerformed(ActionEvent e)
{
//sql actions are carried out
}
Code:
<html>
<head>
<title>Tabbed Test</title>
<head>
<body>
<APPLET CODE = "tabbed_test_applet_09.class" Width=600 Height=600></APPLET>
<body>
<html>
Thanks for you time!