AjoutBoutonInstallation
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 63 KiB |
BIN
bin/Application1/carte$1.class
Normal file
|
@ -145,6 +145,8 @@ public class Fenetre extends JFrame implements ActionListener{
|
|||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
//Affichage
|
||||
|
|
|
@ -4,6 +4,8 @@ import java.awt.Color;
|
|||
import java.awt.Graphics;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Image;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -140,26 +142,66 @@ public class carte extends JPanel{
|
|||
|
||||
}
|
||||
else if (i==3) {
|
||||
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
TextPanel cadran3;
|
||||
TextPanel cadran2;
|
||||
ImagePanel cadran3;
|
||||
TextPanel cadran4;
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
//Cadran 1
|
||||
taille = 17; //taille police
|
||||
cadran1 = new TextPanel(taille);
|
||||
|
||||
|
||||
|
||||
cadran1.setBorder(compound);
|
||||
cadran1.AjouterParagraph(" Pour utiliser notre application, il faut disposer de Revit ainsi que GrassHopper et le plugin installé. \n");
|
||||
cadran1.AjouterParagraph("\n");
|
||||
cadran1.AjouterParagraph(" De plus, l'ordinateur doit disposer d'une connexion Bluetooth. \n");
|
||||
cadran1.setEditable(false);
|
||||
|
||||
//Cadran 2
|
||||
taille = 17; //taille police
|
||||
cadran2 = new TextPanel(taille);
|
||||
|
||||
cadran2.setBorder(compound);
|
||||
cadran2.AjouterParagraph(" Si vous possèdez tout les prérequis précédants, vous pouvez installer GlovePie et Trinus. \n");
|
||||
cadran2.AjouterParagraph("\n");
|
||||
|
||||
//Cadran 3
|
||||
cadran3 = new ImagePanel("test.png");
|
||||
cadran3.setBorder(compound);
|
||||
|
||||
//Cadran 4
|
||||
taille = 17; //taille police
|
||||
cadran4 = new TextPanel(taille);
|
||||
|
||||
cadran4.setBorder(compound);
|
||||
cadran4.AjouterParagraph("Si vous avez déjà fait l'installation, vous pouvez cliquer sur LANCER VR pour passer directement à la réalité virtuelle.");
|
||||
|
||||
|
||||
//Ajouter les cadrans
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
|
||||
}
|
||||
else if (i==4) {
|
||||
|
||||
//Initialitsation
|
||||
TextPanel cadran1;
|
||||
JPanel cadran1;
|
||||
ImagePanel cadran2;
|
||||
ImagePanel cadran3;
|
||||
ImagePanel cadran4;
|
||||
TextPanel Texte;
|
||||
JButton BoutonInstallation = new JButton("Commencer l'instalation");
|
||||
GridLayout g= new GridLayout(2,2);
|
||||
g.setHgap(10);
|
||||
g.setVgap(10);
|
||||
|
@ -167,17 +209,22 @@ public class carte extends JPanel{
|
|||
|
||||
//Cadran 1
|
||||
taille = 15; //taille police
|
||||
cadran1 = new TextPanel(taille);
|
||||
|
||||
|
||||
|
||||
cadran1 = new JPanel();
|
||||
cadran1.setBorder(compound);
|
||||
cadran1.AjouterParagraph(" \n");
|
||||
cadran1.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon fonctionnement"
|
||||
Texte = new TextPanel(taille);
|
||||
Texte.AjouterParagraph(" \n");
|
||||
Texte.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon fonctionnement"
|
||||
+ "de notre système.");
|
||||
cadran1.AjouterParagraph("L'installation va se lancer automatiquement. "
|
||||
Texte.AjouterParagraph("L'installation va se lancer automatiquement. "
|
||||
+ "Vous devez accepter et suivre les étapes décrites sur les images suivantes.");
|
||||
cadran1.setEditable(false);
|
||||
Texte.setEditable(false);
|
||||
|
||||
GridLayout glb = new GridLayout(1,2);
|
||||
cadran1.setLayout(glb);
|
||||
|
||||
cadran1.add(Texte);
|
||||
cadran1.add(BoutonInstallation);
|
||||
|
||||
|
||||
|
||||
//Cadran 2
|
||||
|
@ -197,6 +244,24 @@ public class carte extends JPanel{
|
|||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
BoutonInstallation.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
//Lancement du panneau de configuration
|
||||
|
||||
Runtime rt = Runtime.getRuntime();
|
||||
try {
|
||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
||||
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -267,12 +332,12 @@ public class carte extends JPanel{
|
|||
|
||||
|
||||
//Cadran 3
|
||||
cadran3 = new ImagePanel("Images/Install_Wiimote/2.png");
|
||||
cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
|
||||
cadran3.setBorder(compound);
|
||||
|
||||
|
||||
//Cadran 4
|
||||
cadran4 = new ImagePanel("Images/Install_Wiimote/3.png");
|
||||
cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
|
||||
cadran4.setBorder(compound);
|
||||
|
||||
|
||||
|
@ -282,15 +347,7 @@ public class carte extends JPanel{
|
|||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
//Lancement du panneau de configuration
|
||||
|
||||
Runtime rt = Runtime.getRuntime();
|
||||
try {
|
||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
||||
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -306,13 +363,7 @@ public class carte extends JPanel{
|
|||
g.setVgap(10);
|
||||
setLayout(g);
|
||||
|
||||
|
||||
//Cadran 1
|
||||
cadran1 = new ImagePanel("Images/Install_Wiimote/4.png");
|
||||
|
||||
//Cadran 2
|
||||
|
||||
cadran2 = new ImagePanel("Images/Install_Wiimote/5.png");
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -354,8 +405,7 @@ public class carte extends JPanel{
|
|||
|
||||
|
||||
//Ajout Cadran
|
||||
add(cadran1);
|
||||
add(cadran2);
|
||||
|
||||
add(cadran3);
|
||||
add(cadran4);
|
||||
|
||||
|
|