Bonsoir
Je voudrais savoir comment mettre une image en fond d'un JFrame.Ma classe est la suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 public class StartWindow extends JFrame { public StartWindow() { setTitle("Pharma"); setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); setLocation(300,100) ; JLabel utilisateurLabel = new JLabel("Utilisateur : "); JTextField utilisateurText = new JTextField(15); utilisateurText.setMaximumSize(utilisateurText.getPreferredSize()); ..... } }
Partager