Hi,
Whenever I use image icons in my
Applet, it displays everything except icons. eg. consider the code:
import java.awt.*;
import javax.swing.*;
public class JLabelDemo extends JApplet{
public void init(){
// Get Content Pane
Container contentPane = getContentPane();
// Create an icon
ImageIcon ii = new ImageIcon("france.gif");
// Create a Label
JLabel J1 = new JLabel("France", ii, JLabel.CENTER);
// Add Label to the Content Pane
contentPane.add(J1);
}
}
On execution, I just see the text France without the icon. Can somebody please tell me what is wrong with it & what else is needed to be done.
Thanks,
Vicky.
[This message has been edited by Thomas Paul (edited October 11, 2000).]