Applet Not Inited
From: Alan (algatt_at_onvol.net)
Date: 04/27/04
- Next message: Jeff Schwab: "Re: Applet"
- Previous message: xaos: "Re: studying for SCJP1.4 and have a question"
- Next in thread: Andrew Thompson: "Re: Applet Not Inited"
- Reply: Andrew Thompson: "Re: Applet Not Inited"
- Reply: Roedy Green: "Re: Applet Not Inited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Apr 2004 07:03:56 -0700
Hi,
I have a problem with Swing. I create my applet and everything works,
however when I try to show an image, an error message will show
'Applet Not Inited'. In the applet viewer it works fine, but in IE6 it
won't work. Here is a simple version of my code.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test extends JApplet
{
public void init()
{
Container contentPane = getContentPane();
contentPane.setLayout(new FlowLayout());
JLabel picture = new JLabel("Hello",new
ImageIcon("images/pizza.jpg"),JLabel.CENTER);
contentPane.add(picture);
}
}
Thanks
- Next message: Jeff Schwab: "Re: Applet"
- Previous message: xaos: "Re: studying for SCJP1.4 and have a question"
- Next in thread: Andrew Thompson: "Re: Applet Not Inited"
- Reply: Andrew Thompson: "Re: Applet Not Inited"
- Reply: Roedy Green: "Re: Applet Not Inited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|