[RESOLVIDO] GUI - Icon

Olá pessoal,

Após uma pesquisa sobre o meu problema ainda não consegui resolve-lo, acredito eu que seja algum problema de configuração.

Pois bem, iniciei meus estudos em GUIs, estou usando o livro do Deitel - Como Programar.
Implementei o primeiro exemplo que traz no livro mas está dando algum problema no tal do Icon.

Segue o codigo:


import java.awt.FlowLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class LabelFrame extends JFrame {
	
	private JLabel label1;
	private JLabel label2;
	private JLabel label3;
	
	public LabelFrame() {
		super("Testando JLabel");
		
		setLayout(new FlowLayout());
		label1 = new JLabel("Label com texto");
		label1.setToolTipText("Este é o label1");
		add(label1);
		
			 
		Icon icone = new ImageIcon(getClass().getResource("IMG_0044.png"));
		label2 = new JLabel("Label com texto e icone", icone, SwingConstants.LEFT);
		label2.setToolTipText("Este é o label2");
		add(label2);
		
		label3 = new JLabel();
		label3.setText("Label com icone e texto em baixo");
		label3.setIcon(icone);
		label3.setHorizontalTextPosition(SwingConstants.CENTER);
		label3.setVerticalTextPosition(SwingConstants.BOTTOM);
		label3.setToolTipText("Este é o label3");
		add(label3);

	}
}

Minha primeira dúvida: Onde deve estar o arquivo IMG_0044.png ? no workspace na pasta do projeto ?

O erro:

Exception in thread "main" java.lang.NullPointerException
	at javax.swing.ImageIcon.<init>(Unknown Source)
	at GUIs.LabelFrame.<init>(LabelFrame.java:26)
	at GUIs.TestaLabel.main(TestaLabel.java:8)

Atenciosamente,
Starke

Já arrumei,

subtitui:

Icon icone = new ImageIcon(getClass().getResource("IMG_0044.png"));

por:

Icon icone = new ImageIcon("IMG_0044.png");

Coloca Tag [RESOLVIDO] no nome do tópico