Como faço para colocar uma imagem de fundo em um JFrame.
Obrigado.
http://forum.java.sun.com/thread.jspa?threadID=599393&messageID=3196643
utilize isto
ImageIO image = ImageIO.read(new URL(getClass().getResource(“path\suaimagem.jpg”), “suaimagem.jpg”));
public void paintComponent(Graphics g) {
super.paintComponent(g);
if (image != null)
g.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), this);
}
falou