Hi,
Below is my main, and my attempt to get the
applet contentPane into the JFrames. But nothing shows in the JFrame. Is something wrong with my code?
public static void main(
String arg[]) {
JFrame f = new JFrame();
JApplet datamartApplet = new dataMartJApplet();
datamartApplet.init();
f.setContentPane(datamartApplet.getContentPane());
f.setBounds(0,0,750,500);
f.setVisible(true);
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
f.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
System.exit(0);
}
});
}