bonjour
Bonjour,
j'ai essayé ce prg; mais il sort aucune output veuillez m'aidez svp
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
20
21
22
 
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Fenetre extends JFrame
{
 
       public Fenetre()
            {
            this.setTitle("Ma première fenêtre java");
            this.setSize(400,500);
            this.setLocationRelativeTo(null);
            this.setContentPane(pan);
            this.setVisible(true);
            }
    public static void main(String[]args)
    {
            JPanel pan=new JPanel();
            pan.setBackground(Color.ORANGE);
            pan.show();
            }
}