-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFenetreInfo.java
More file actions
36 lines (28 loc) · 906 Bytes
/
FenetreInfo.java
File metadata and controls
36 lines (28 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import javax.swing.*; //fenêtre
import java.awt.*; //couleur
import java.io.*; //image
/**
* \class FenetreInfo : fenêtre affichant plus d'informations sur la mission Mars 2020
*/
public class FenetreInfo extends JFrame{
/**
* \fn FenetreInfo() : constructeur FenetreInfo
*/
public FenetreInfo(){
//initialisation de la fenêtre
this.setTitle("Trajectoire illustree de Perseverance");
this.setSize(1000,830);
this.setLocation(400,20);
this.setResizable(false);
//initialisation des composants de la fenêtre
JPanel Fond = new JPanel();
Fond.setLayout(null);
Fond.setBounds(0,0,1000,809);
Fond.setBackground(Color.black);
this.add(Fond);
JLabel Image = new JLabel(new ImageIcon("images/nasa_descente.jpg"));
Image.setBounds(0,0,1000,809);
Fond.add(Image);
this.setVisible(true);
}
}