Image arrière plan JFrame

Fermé
Nouyou Messages postés 41 Date d'inscription lundi 1 décembre 2014 Statut Membre Dernière intervention 16 mars 2016 - Modifié par KX le 12/04/2015 à 23:20
salut y'a t-il quelqu'un qui peut m'aider à changer ce code afin d'obtenir une image en arrière plan de la JFrame ?
Merci !

public class Bienvenue extends JFrame implements ActionListener{
    private JTextField   tpseudo , tpass, tnvpseudo ,tnvpass ,tconfpass ;
    private JLabel pseudo , pass , nvpseudo , nvpass , confpass ;
    
    public Bienvenue(){
        this.setTitle("Bienvenue");
  
     this.setSize(700,600);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLocationRelativeTo(null);
        this.setLocale(java.util.Locale.getDefault());
       this.getContentPane().setLayout(null);
       
     Font font = new Font("DialogInput",Font.BOLD,10);

       pseudo = new JLabel("pseudo");
       pseudo.setBounds(new Rectangle(400,50,80,20));
       pseudo.setFont(font);
       
       this.getContentPane().add(pseudo);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}