I cannot seem to set the icon in the upper left of the window or in the task. I am using NetBeans and it created my JFrame for me using the following code to initialize:
java.awt.EventQueue.invokeLater(new Unable() {
public void run() {
new MainFrame().setVisible(true);
}
});
I have checked online tutorials and this seem to be a trully easy task BUT my JFrame, MainFrame, seems not to have the method I need....
I should be able too do this:
MainFrame.setIconImage(Image image);
But it seems I cannot get that method in my JFrame at all, it just doesnt show up in NetBeans and wont allow me to compile. I have tried looking at the base JFrame class and see no setIconImage there either. Any help would be apriciated.
KN