Como posso fazer, porque precisso adicinar uma imagem de fundo e em cima botoes porem em forma de imagens, usando rotulo mesmo, tentei desta forma mas num deu certo,
tipo eu criei um formulario JFrame e coloquei, porem quando volto pro painel Projeto (usando netbeans) ele nao aparece nada, nem o Jpanel aparece
# package principal;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
public class Teste extends javax.swing.JFrame {
JLabel label1 = new JLabel(new ImageIcon("img.jpg"));
public Teste() {
initComponents();
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Teste().setVisible(true);
}
});
}
