Salut,
Bon re-problème pour mon Interface en suivant mon tutoriel... Il doit encore me manquer un truc.
Il ne semble pas reconnaître la fonction makePanel...
L'erreur dit : makePanelWithBorderLayout() is undefined for the Type Interface
Merci.![]()
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Interface extends JFrame implements ActionListener, MouseListener { public Interface() { super("Médiathèque"); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.init(); } private void init() { ImageIcon icon = null; JTabbedPane tabbedPane = new JTabbedPane(); Component panel = makePanelWithBorderLayout();
Partager