I've got the following button...
public void actionPerformed(ActionEvent arg0) {
Contacts contact = new Contacts();
contact.setVisible(true);
}
Contacts is just a simple JApplet...
public class Contacts extends JApplet {
private JPanel jContentPane = null;
public Contacts() {
super();
}
public void init() {
this.setSize(500, 260);
this.setContentPane(getJContentPane());
}
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getJList(), null);
jContentPane.add(getJButton(), null);
jContentPane.add(getJButton1(), null);
}
return jContentPane;
}
}
Why is what I'm doing not working? How would I launch this JFrame?