Browse Source

First_commit

Joao Conceicao Nunes 3 years ago
commit
a1a031d483
70 changed files with 1648 additions and 0 deletions
  1. 7
    0
      .classpath
  2. 17
    0
      .project
  3. 11
    0
      .settings/org.eclipse.jdt.core.prefs
  4. BIN
      Images/Install_Trinus/1.PNG
  5. BIN
      Images/Install_Trinus/2.PNG
  6. BIN
      Images/Install_Trinus/3.PNG
  7. BIN
      Images/Install_Trinus/4.PNG
  8. BIN
      Images/Install_Trinus/5.PNG
  9. BIN
      Images/Install_Trinus/6.PNG
  10. BIN
      Images/Install_Trinus/7.PNG
  11. BIN
      Images/Install_Wiimote/1.PNG
  12. BIN
      Images/Install_Wiimote/3.PNG
  13. BIN
      Images/Install_Wiimote/4.PNG
  14. BIN
      Images/Logos/Logo_INSA.png
  15. BIN
      Images/Logos/Logo_ISDAT.PNG
  16. BIN
      Images/Logos/Nom_Cours.PNG
  17. BIN
      Images/Tuto_Revit/1.PNG
  18. BIN
      Images/Tuto_Revit/2.PNG
  19. 4
    0
      Path/Path.txt
  20. 7
    0
      bin/.classpath
  21. 17
    0
      bin/.project
  22. 11
    0
      bin/.settings/org.eclipse.jdt.core.prefs
  23. BIN
      bin/Application1/ImagePanel.class
  24. BIN
      bin/Application1/Interface$1.class
  25. BIN
      bin/Application1/Interface$2.class
  26. BIN
      bin/Application1/Interface$3.class
  27. BIN
      bin/Application1/Interface.class
  28. BIN
      bin/Application1/Main.class
  29. BIN
      bin/Application1/Pages/Page1.class
  30. BIN
      bin/Application1/Pages/Page10.class
  31. BIN
      bin/Application1/Pages/Page11$1.class
  32. BIN
      bin/Application1/Pages/Page11$2.class
  33. BIN
      bin/Application1/Pages/Page11.class
  34. BIN
      bin/Application1/Pages/Page2.class
  35. BIN
      bin/Application1/Pages/Page3$1.class
  36. BIN
      bin/Application1/Pages/Page3.class
  37. BIN
      bin/Application1/Pages/Page4.class
  38. BIN
      bin/Application1/Pages/Page5$1.class
  39. BIN
      bin/Application1/Pages/Page5.class
  40. BIN
      bin/Application1/Pages/Page6$1.class
  41. BIN
      bin/Application1/Pages/Page6$2.class
  42. BIN
      bin/Application1/Pages/Page6.class
  43. BIN
      bin/Application1/Pages/Page7$1.class
  44. BIN
      bin/Application1/Pages/Page7$2.class
  45. BIN
      bin/Application1/Pages/Page7$3.class
  46. BIN
      bin/Application1/Pages/Page7$4.class
  47. BIN
      bin/Application1/Pages/Page7$5.class
  48. BIN
      bin/Application1/Pages/Page7.class
  49. BIN
      bin/Application1/Pages/Page8.class
  50. BIN
      bin/Application1/Pages/Page9.class
  51. BIN
      bin/Application1/PathVar.class
  52. BIN
      bin/Application1/TextPanel.class
  53. BIN
      bin/Application1/Title.class
  54. 37
    0
      src/Application1/ImagePanel.java
  55. 208
    0
      src/Application1/Interface.java
  56. 33
    0
      src/Application1/Main.java
  57. 105
    0
      src/Application1/Pages/Page1.java
  58. 66
    0
      src/Application1/Pages/Page10.java
  59. 129
    0
      src/Application1/Pages/Page11.java
  60. 102
    0
      src/Application1/Pages/Page2.java
  61. 97
    0
      src/Application1/Pages/Page3.java
  62. 49
    0
      src/Application1/Pages/Page4.java
  63. 106
    0
      src/Application1/Pages/Page5.java
  64. 104
    0
      src/Application1/Pages/Page6.java
  65. 195
    0
      src/Application1/Pages/Page7.java
  66. 53
    0
      src/Application1/Pages/Page8.java
  67. 86
    0
      src/Application1/Pages/Page9.java
  68. 118
    0
      src/Application1/PathVar.java
  69. 29
    0
      src/Application1/TextPanel.java
  70. 57
    0
      src/Application1/Title.java

+ 7
- 0
.classpath View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" path="src"/>
4
+	<classpathentry excluding="src/" kind="src" path=""/>
5
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6
+	<classpathentry kind="output" path="bin"/>
7
+</classpath>

+ 17
- 0
.project View File

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>App1</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.jdt.core.javabuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+	</buildSpec>
14
+	<natures>
15
+		<nature>org.eclipse.jdt.core.javanature</nature>
16
+	</natures>
17
+</projectDescription>

+ 11
- 0
.settings/org.eclipse.jdt.core.prefs View File

@@ -0,0 +1,11 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5
+org.eclipse.jdt.core.compiler.compliance=1.8
6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
8
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11
+org.eclipse.jdt.core.compiler.source=1.8

BIN
Images/Install_Trinus/1.PNG View File


BIN
Images/Install_Trinus/2.PNG View File


BIN
Images/Install_Trinus/3.PNG View File


BIN
Images/Install_Trinus/4.PNG View File


BIN
Images/Install_Trinus/5.PNG View File


BIN
Images/Install_Trinus/6.PNG View File


BIN
Images/Install_Trinus/7.PNG View File


BIN
Images/Install_Wiimote/1.PNG View File


BIN
Images/Install_Wiimote/3.PNG View File


BIN
Images/Install_Wiimote/4.PNG View File


BIN
Images/Logos/Logo_INSA.png View File


BIN
Images/Logos/Logo_ISDAT.PNG View File


BIN
Images/Logos/Nom_Cours.PNG View File


BIN
Images/Tuto_Revit/1.PNG View File


BIN
Images/Tuto_Revit/2.PNG View File


+ 4
- 0
Path/Path.txt View File

@@ -0,0 +1,4 @@
1
+Trinus
2
+C:\Users\Public\Desktop\Trinus Cardboard.lnk
3
+Revit
4
+C:\Users\Public\Desktop\Skype.lnk

+ 7
- 0
bin/.classpath View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<classpath>
3
+	<classpathentry kind="src" path="src"/>
4
+	<classpathentry excluding="src/" kind="src" path=""/>
5
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6
+	<classpathentry kind="output" path="bin"/>
7
+</classpath>

+ 17
- 0
bin/.project View File

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>App1</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.jdt.core.javabuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+	</buildSpec>
14
+	<natures>
15
+		<nature>org.eclipse.jdt.core.javanature</nature>
16
+	</natures>
17
+</projectDescription>

+ 11
- 0
bin/.settings/org.eclipse.jdt.core.prefs View File

@@ -0,0 +1,11 @@
1
+eclipse.preferences.version=1
2
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5
+org.eclipse.jdt.core.compiler.compliance=1.8
6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
8
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11
+org.eclipse.jdt.core.compiler.source=1.8

BIN
bin/Application1/ImagePanel.class View File


BIN
bin/Application1/Interface$1.class View File


BIN
bin/Application1/Interface$2.class View File


BIN
bin/Application1/Interface$3.class View File


BIN
bin/Application1/Interface.class View File


BIN
bin/Application1/Main.class View File


BIN
bin/Application1/Pages/Page1.class View File


BIN
bin/Application1/Pages/Page10.class View File


BIN
bin/Application1/Pages/Page11$1.class View File


BIN
bin/Application1/Pages/Page11$2.class View File


BIN
bin/Application1/Pages/Page11.class View File


BIN
bin/Application1/Pages/Page2.class View File


BIN
bin/Application1/Pages/Page3$1.class View File


BIN
bin/Application1/Pages/Page3.class View File


BIN
bin/Application1/Pages/Page4.class View File


BIN
bin/Application1/Pages/Page5$1.class View File


BIN
bin/Application1/Pages/Page5.class View File


BIN
bin/Application1/Pages/Page6$1.class View File


BIN
bin/Application1/Pages/Page6$2.class View File


BIN
bin/Application1/Pages/Page6.class View File


BIN
bin/Application1/Pages/Page7$1.class View File


BIN
bin/Application1/Pages/Page7$2.class View File


BIN
bin/Application1/Pages/Page7$3.class View File


BIN
bin/Application1/Pages/Page7$4.class View File


BIN
bin/Application1/Pages/Page7$5.class View File


BIN
bin/Application1/Pages/Page7.class View File


BIN
bin/Application1/Pages/Page8.class View File


BIN
bin/Application1/Pages/Page9.class View File


BIN
bin/Application1/PathVar.class View File


BIN
bin/Application1/TextPanel.class View File


BIN
bin/Application1/Title.class View File


+ 37
- 0
src/Application1/ImagePanel.java View File

@@ -0,0 +1,37 @@
1
+package Application1;
2
+
3
+import java.awt.Graphics; 
4
+import java.awt.Image;
5
+import java.io.File;
6
+import java.io.IOException;
7
+
8
+import javax.imageio.ImageIO;
9
+import javax.swing.JPanel;
10
+
11
+public class ImagePanel extends  JPanel {
12
+	private int TailleImageX;
13
+	private int TailleImageY;
14
+	private Image Img;
15
+
16
+	public ImagePanel( String path) {
17
+		
18
+		try {
19
+			
20
+			Img = ImageIO.read(new File(path));
21
+			TailleImageY = Img.getHeight(null);
22
+			TailleImageX = Img.getWidth(null);
23
+			
24
+			
25
+		}			
26
+		 catch (IOException e) {
27
+			e.printStackTrace();
28
+		}
29
+	}
30
+	
31
+	public void paintComponent(Graphics g) {
32
+		g.drawImage(this.Img, 0, 0,this.getWidth(),this.getHeight(),0,0,TailleImageX,TailleImageY, null);
33
+		
34
+	}
35
+		
36
+
37
+}

+ 208
- 0
src/Application1/Interface.java View File

@@ -0,0 +1,208 @@
1
+package Application1;
2
+
3
+import java.awt.BorderLayout;
4
+import java.awt.CardLayout;
5
+import java.awt.Color;
6
+import java.awt.Dimension;
7
+import java.awt.FlowLayout;
8
+import java.awt.Font;
9
+import java.awt.Graphics;
10
+import java.awt.Image;
11
+import java.awt.event.ActionEvent;
12
+import java.awt.event.ActionListener;
13
+import java.io.File;
14
+import java.io.IOException;
15
+
16
+import javax.imageio.ImageIO;
17
+import javax.swing.BorderFactory;
18
+import javax.swing.JButton;
19
+import javax.swing.JFrame;
20
+import javax.swing.JLabel;
21
+import javax.swing.JPanel;
22
+import javax.swing.border.Border;
23
+import javax.swing.border.EmptyBorder;
24
+import javax.swing.border.EtchedBorder;
25
+
26
+import Application1.Pages.Page1;
27
+import Application1.Pages.Page10;
28
+import Application1.Pages.Page11;
29
+import Application1.Pages.Page2;
30
+import Application1.Pages.Page3;
31
+import Application1.Pages.Page4;
32
+import Application1.Pages.Page5;
33
+import Application1.Pages.Page6;
34
+import Application1.Pages.Page7;
35
+import Application1.Pages.Page8;
36
+import Application1.Pages.Page9;
37
+
38
+public class Interface extends JFrame  {
39
+	//Initialisation des objets
40
+		 private JPanel conteneur;
41
+		 private JPanel conteneurBouton; 
42
+		 private JButton boutonRev;
43
+		 private JButton boutonSuiv;
44
+		 private JButton boutonFinInstall;
45
+		 private Title conteneurTitre;
46
+		 private CardLayout cardLayout;
47
+		 private String[] listContent = {"CARD_1","CARD_2","CARD_3","CARD_4","CARD_5","CARD_6","CARD_7","CARD_8","CARD_9","CARD_10","CARD_11","CARD_12"};
48
+	
49
+		 
50
+		 
51
+		 
52
+		 //Fonction necessaire pour le lancement
53
+		 public void Start() {
54
+			 
55
+			 
56
+			 //Création des objets
57
+			 conteneur = new JPanel();
58
+			 conteneurTitre = new Title();
59
+			 conteneurBouton = new JPanel();
60
+			 
61
+			 
62
+			 Font f = new Font("Century", Font.BOLD, 15);
63
+			 
64
+			 boutonRev = new JButton("Précédent");
65
+			 boutonRev.setFont(f);
66
+			 boutonRev.setForeground(Color.BLACK);
67
+			 boutonRev.setBackground(Color.LIGHT_GRAY);
68
+			 
69
+			 boutonSuiv = new JButton("Suivant");
70
+			 boutonSuiv.setFont(f);
71
+			 boutonSuiv.setForeground(Color.BLACK);
72
+			 boutonSuiv.setBackground(Color.LIGHT_GRAY);
73
+			 
74
+			 boutonFinInstall = new JButton("Lancer VR");
75
+			 boutonFinInstall.setFont(f);
76
+			 boutonFinInstall.setForeground(Color.BLACK);
77
+			 boutonFinInstall.setBackground(Color.LIGHT_GRAY);
78
+			 //SetUp de la fenetre
79
+			 this.setSize(1200,900);
80
+			 this.setLocationRelativeTo(null); //On le garde centrée
81
+			 this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Pour réellement fermer la fenetre
82
+			 this.dispose();
83
+			 this.setUndecorated(false);
84
+			 conteneur.setPreferredSize(new Dimension(1100,640));
85
+			 conteneurBouton.setPreferredSize(new Dimension(1200,50));
86
+			 conteneurTitre.setBorder(new EmptyBorder(10,10,10,10));
87
+			 
88
+			 
89
+		 }
90
+		 
91
+		 //Fonction Permettant de parametrer l'interface
92
+		 public void SetupInterface () {
93
+			 cardLayout = new CardLayout();
94
+				Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
95
+				Border blackline = BorderFactory.createLineBorder(Color.black);
96
+				Border compound;
97
+				compound = BorderFactory.createCompoundBorder(border, blackline);
98
+
99
+				 //Création des pages
100
+				 ImagePanel card1 = new ImagePanel("Images/Logos/Logo_INSA.png");
101
+				 Page1 card2 = new Page1(15,compound);
102
+				 Page2 card3 = new Page2(15,compound);
103
+				 Page3 card4 = new Page3(15,compound);
104
+				 Page4 card5 = new Page4 (15,compound);
105
+				 Page5 card6 = new Page5(15,compound);
106
+				 Page6 card7 = new Page6(15,compound);
107
+				 Page7 card8 = new Page7(15,compound);
108
+				 Page8 card9 = new Page8(15,compound);
109
+				 Page9 card10 = new Page9(15,compound);
110
+				 Page10 card11 = new Page10(15,compound);
111
+				 Page11 card12 = new Page11(15,compound);
112
+				 
113
+				 //Mise en place des espaces
114
+				 cardLayout.setHgap(10);
115
+				 cardLayout.setVgap(10);
116
+				 
117
+				 //SetUp des conteneurs	
118
+				 conteneurBouton.setBackground(Color.WHITE);
119
+				 conteneurBouton.add(boutonRev);
120
+				 conteneurBouton.add(boutonSuiv);
121
+				 conteneurBouton.add(boutonFinInstall);
122
+				 conteneur.setBackground(Color.white);
123
+				 conteneur.setLayout(cardLayout);
124
+				 conteneur.add(card1,listContent[0]);
125
+				 conteneur.add(card2,listContent[1]);
126
+				 conteneur.add(card3,listContent[2]);
127
+				 conteneur.add(card4,listContent[3]);
128
+				 conteneur.add(card5,listContent[4]);
129
+				 conteneur.add(card6,listContent[5]);
130
+				 conteneur.add(card12,listContent[6]);
131
+				 conteneur.add(card7,listContent[7]);
132
+				 conteneur.add(card8,listContent[8]);
133
+				 conteneur.add(card9,listContent[9]);
134
+				 conteneur.add(card10,listContent[10]);
135
+				 conteneur.add(card11,listContent[11]);
136
+				
137
+			 
138
+		 }
139
+		 public void SetupListeners() {
140
+
141
+				// Gestion de l'action des Boutons
142
+			 //Bouton Suivant
143
+			    boutonSuiv.addActionListener(new ActionListener() {
144
+			    	public void actionPerformed(ActionEvent event) {
145
+			    		cardLayout.next(conteneur);
146
+			    		
147
+			    	}
148
+			    });
149
+			    //Bouton Précedent
150
+			    boutonRev.addActionListener(new ActionListener() {
151
+			    	public void actionPerformed(ActionEvent event) {
152
+			    		cardLayout.previous(conteneur);
153
+			    		
154
+			    	}
155
+			    });
156
+			    
157
+			    //Bouton LancerVR
158
+			    boutonFinInstall.addActionListener(new ActionListener() {
159
+			    	public void actionPerformed(ActionEvent event) {
160
+			    		cardLayout.show(conteneur,"CARD_9"); 
161
+			    		
162
+			    	}
163
+			    });
164
+			 
165
+		 }
166
+		 public void paintComponent(Graphics g) {
167
+				try {
168
+					Image img1 = ImageIO.read(new File("Images/Logos/Logo_INSA.png"));
169
+					Image img2 = ImageIO.read(new File("Images/Logos/Logo_ISDAT.png"));
170
+					Image img3 = ImageIO.read(new File("Nom_cours.png"));
171
+					g.drawImage(img1, 20, 10,260,130,0,0,354,142, conteneurTitre);
172
+					g.drawImage(img2, 200, 10,370,100,0,0,711,352, conteneurTitre);
173
+					g.drawImage(img3, conteneurTitre.getWidth() - 250, 10, conteneurTitre.getWidth() - 12, 100, 0, 0, 260, 63, conteneurTitre);
174
+					
175
+					
176
+					
177
+					
178
+					
179
+				} catch (IOException e) {
180
+					// TODO Auto-generated catch block
181
+					e.printStackTrace();
182
+				}
183
+			}
184
+		 
185
+		 
186
+				
187
+				
188
+			
189
+		 public void Display() {
190
+			 //Affichage 
191
+				this.getContentPane().add(conteneurBouton, BorderLayout.SOUTH);
192
+				this.getContentPane().add(conteneur, BorderLayout.CENTER);
193
+				this.getContentPane().add(conteneurTitre,BorderLayout.NORTH);
194
+				this.setVisible(true);
195
+				
196
+			 
197
+		 }
198
+		 
199
+		 
200
+		 
201
+		 
202
+		
203
+		
204
+
205
+	}
206
+
207
+
208
+

+ 33
- 0
src/Application1/Main.java View File

@@ -0,0 +1,33 @@
1
+package Application1;
2
+
3
+import java.awt.Desktop;
4
+import java.io.File;
5
+import java.io.IOException;
6
+
7
+public class Main {
8
+	public static void main(String[] args) {
9
+		Interface Window = new Interface();
10
+		Window.Start();
11
+		Window.SetupInterface();
12
+		Window.SetupListeners();
13
+		
14
+		Window.Display();
15
+		
16
+		
17
+		
18
+		
19
+		
20
+		
21
+		
22
+		
23
+		
24
+		
25
+	
26
+	
27
+	
28
+	
29
+	
30
+	
31
+	
32
+	}
33
+}

+ 105
- 0
src/Application1/Pages/Page1.java View File

@@ -0,0 +1,105 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+import javax.swing.border.Border;
7
+
8
+import Application1.TextPanel;
9
+
10
+public class Page1 extends JPanel {
11
+	
12
+	public Page1(int taillePolice, Border bordure){
13
+		//Initialitsation
14
+		TextPanel cadran1;
15
+		TextPanel cadran2;
16
+		TextPanel cadran3;
17
+		TextPanel cadran4;
18
+		GridLayout g= new GridLayout(2,2);
19
+		g.setHgap(10);
20
+		g.setVgap(10);
21
+		setLayout(g);
22
+		
23
+		
24
+		//Cadran 1 
25
+		cadran1 = new TextPanel(taillePolice);
26
+		
27
+		cadran1.AjouterParagraph("       \n");
28
+		cadran1.AjouterParagraph("                              Du BIM à la Réalité Virtuelle!  \n");
29
+		cadran1.AjouterParagraph("       \n");
30
+		cadran1.AjouterParagraph("  Projet issu d'une collaboration entre l'INSA et l'isdaT. \n");
31
+		cadran1.AjouterParagraph(" \n");
32
+		cadran1.AjouterParagraph("  A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
33
+		cadran1.AjouterParagraph("  ceux de l'INSA ont mis au point une application permettant \n");
34
+		cadran1.AjouterParagraph("  de visualiser un environnement virtuel dépendant \n");
35
+		cadran1.AjouterParagraph("  de la maquette BIM, afin d'intéragir avec \n");
36
+		cadran1.AjouterParagraph("  lui au sein de cette réalité virtuelle. \n");
37
+		
38
+		cadran1.setEditable(false);
39
+		cadran1.setBorder(bordure);
40
+		
41
+		
42
+		//Cadran 2
43
+		cadran2 = new TextPanel(taillePolice);
44
+		
45
+		cadran2.AjouterParagraph("       \n");
46
+		cadran2.AjouterParagraph("  Participants à la réalisation du projet : \n");
47
+		cadran2.AjouterParagraph("       \n");
48
+		cadran2.AjouterParagraph("  Elèves de l'INSA :            Elèves de l'isdaT :           Tuteurs : \n");
49
+		cadran2.AjouterParagraph(" \n");
50
+		cadran2.AjouterParagraph("  AMOUR Chadi                   BRUGEL Lise                     BRUYERE Nathalie \n");
51
+		cadran2.AjouterParagraph("  BERRADA El Ghali          OSELE Jérémie                  MONTEIL Thierry \n");
52
+		cadran2.AjouterParagraph("  BERTA Pauline \n");
53
+		cadran2.AjouterParagraph("  BOUOULID Ilias \n");
54
+		cadran2.AjouterParagraph("  NUNES Joao \n");
55
+		cadran2.AjouterParagraph("  POLONI Laura \n");
56
+		cadran2.AjouterParagraph("       \n");
57
+		cadran2.setEditable(false);
58
+		cadran2.setBorder(bordure);
59
+		
60
+		
61
+		//Cadran 3 
62
+		
63
+		cadran3 = new TextPanel(taillePolice);
64
+		
65
+		cadran3.AjouterParagraph("       \n");
66
+		cadran3.AjouterParagraph("  Logiciels nécessaires à la bonne réalisation du projet : \n");
67
+		cadran3.AjouterParagraph("       \n");
68
+		cadran3.AjouterParagraph("  Revit \n");
69
+		cadran3.AjouterParagraph("  GrassHopper (avec son plugin) \n");
70
+		cadran3.AjouterParagraph("  Trinus \n");
71
+		cadran3.AjouterParagraph("  GlovePie \n");
72
+		cadran3.AjouterParagraph("       \n");
73
+		cadran3.AjouterParagraph("  Nous vous expliquerons par la suite quels sont les logiciels \n");
74
+		cadran3.AjouterParagraph("  prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
75
+		cadran3.setEditable(false);
76
+		cadran3.setBorder(bordure);
77
+		
78
+		
79
+		//Cadran 4
80
+		
81
+		cadran4 = new TextPanel(taillePolice);
82
+		
83
+		cadran4.AjouterParagraph("       \n");
84
+		cadran4.AjouterParagraph("  Matériel nécessaire à la bonne réalisation du projet : \n");
85
+		cadran4.AjouterParagraph("       \n");
86
+		cadran4.AjouterParagraph("  Wiimote \n");
87
+		cadran4.AjouterParagraph("  Sensor bar \n");
88
+		cadran4.AjouterParagraph("  Masque \n");
89
+		cadran4.AjouterParagraph("  Smartphone \n");
90
+		cadran4.AjouterParagraph("       \n");
91
+		cadran4.AjouterParagraph("  Nous vous expliquerons par la suite quel sera l'utilisation \n");
92
+		cadran4.AjouterParagraph("  de chaque matériel et comment les mettre en place. \n");
93
+		cadran4.setEditable(false);
94
+		cadran4.setBorder(bordure);
95
+		
96
+		//Ajouter les cadrans
97
+		add(cadran1);
98
+		add(cadran2);
99
+		add(cadran3);
100
+		add(cadran4);			
101
+		
102
+		
103
+	}
104
+
105
+}

+ 66
- 0
src/Application1/Pages/Page10.java View File

@@ -0,0 +1,66 @@
1
+package Application1.Pages;
2
+
3
+
4
+
5
+import java.awt.GridLayout;
6
+
7
+import javax.swing.JPanel;
8
+import javax.swing.border.Border;
9
+
10
+import Application1.ImagePanel;
11
+import Application1.TextPanel;
12
+
13
+public class Page10 extends JPanel {
14
+	public Page10(int taillePolice, Border bordure){
15
+		TextPanel cadran3;
16
+		ImagePanel cadran4;
17
+	
18
+		GridLayout g= new GridLayout(2,2);
19
+		g.setHgap(10);
20
+		g.setVgap(10);
21
+		setLayout(g);
22
+		
23
+	
24
+		
25
+		
26
+		
27
+		//Cadran 3
28
+		cadran3 = new TextPanel(taillePolice);
29
+		
30
+		cadran3.setBorder(bordure);
31
+		cadran3.AjouterParagraph("  \n");
32
+		cadran3.AjouterParagraph("  Dans Grasshopper, faites File->Open Document->...\n");
33
+		cadran3.AjouterParagraph(" L'objet Paravent6 est l'objet qu'on a choisi d'utiliser comme exemple \n");
34
+		cadran3.AjouterParagraph("  \n");
35
+		cadran3.AjouterParagraph("  Cliquer sur le bouton Recompute de l'onglet Rhinocéros de Revit pour afficher l'objet \n");
36
+		cadran3.AjouterParagraph("  Cliquer sur l'objet qui apparaît \n");
37
+		cadran3.AjouterParagraph("  Parmi les paramètres de l'objet proposés dans la bande (properties, other), \n");
38
+		cadran3.AjouterParagraph("  L'utilisateur peut changer les paramètres en écrivant la valeur souhaitée, ou en cliquant sur les petites flèches \n");
39
+		cadran3.AjouterParagraph("  A chaque changement de paramètre, il faut appuyer sur le bouton Recompute de l'onglet Rhinocéros \n");
40
+		cadran3.AjouterParagraph("  \n");
41
+		cadran3.setEditable(false);
42
+		
43
+
44
+		//Cadran 4
45
+		cadran4 = new ImagePanel("Images/Tuto_Revit/2.png");
46
+		cadran4.setBorder(bordure);
47
+		
48
+		
49
+		
50
+		
51
+		
52
+		
53
+		
54
+		
55
+		
56
+		//Ajouter les cadrans
57
+				add(cadran3);
58
+				add(cadran4);
59
+				
60
+				
61
+			
62
+		
63
+	}
64
+
65
+	
66
+}

+ 129
- 0
src/Application1/Pages/Page11.java View File

@@ -0,0 +1,129 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Desktop;
5
+import java.awt.Font;
6
+import java.awt.GridLayout;
7
+import java.awt.event.ActionEvent;
8
+import java.awt.event.ActionListener;
9
+import java.io.File;
10
+import java.io.IOException;
11
+
12
+import javax.swing.JButton;
13
+import javax.swing.JComponent;
14
+import javax.swing.JPanel;
15
+import javax.swing.border.Border;
16
+
17
+import Application1.ImagePanel;
18
+import Application1.TextPanel;
19
+
20
+public class Page11 extends JPanel {
21
+	public Page11(int taillePolice, Border bordure){
22
+
23
+		//Initialitsation
24
+				JPanel cadran1 = new JPanel();
25
+				TextPanel cadran1_1;
26
+				TextPanel cadran2_1;
27
+				JPanel cadran2 = new JPanel();
28
+				ImagePanel cadran3;
29
+				ImagePanel cadran4;
30
+				TextPanel Texte;
31
+				
32
+				JButton BoutonInstallationWIP = new JButton("START INSTALLATION Rhino WIP");
33
+				Font f = new Font("Serif", Font.BOLD, 45);
34
+				
35
+				BoutonInstallationWIP.setFont(f);
36
+				BoutonInstallationWIP.setForeground(Color.WHITE);
37
+				BoutonInstallationWIP.setBackground(Color.LIGHT_GRAY);
38
+				
39
+				GridLayout g= new GridLayout(2,2);
40
+				GridLayout cad1 = new GridLayout(2,1);
41
+				g.setHgap(10);
42
+				g.setVgap(10);
43
+				setLayout(g);
44
+				
45
+				cadran1.setLayout(cad1);
46
+				
47
+				cadran1_1 = new TextPanel(taillePolice);
48
+				cadran1_1.setBorder(bordure);
49
+				
50
+				cadran1_1.AjouterParagraph("  \n");
51
+				cadran1_1.AjouterParagraph("  L'installation du bouton Rhino WIP est nécessaire pour le bon \n");
52
+				cadran1_1.AjouterParagraph("  fonctionnement de notre système. \n");
53
+				cadran1_1.AjouterParagraph("  Ce bouton va permettre de faire fonctionner une version bêta de rhino \n" );
54
+				cadran1_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
55
+				cadran1_1.AjouterParagraph("  Vous aurez probablement besoin de créer un compte Rhino. C'est possible \n");
56
+				cadran1_1.AjouterParagraph("  que vous ayez besoin de créer un compte en suivant le lien suivant. \n");
57
+				cadran1_1.AjouterParagraph("  \n");
58
+				cadran1_1.setEditable(false);
59
+				
60
+				cadran1.add(cadran1_1);
61
+				cadran1.add(BoutonInstallationWIP);
62
+				
63
+				add(cadran1);
64
+				
65
+				//Bouton numero 2 pour Rhino inside Revit
66
+				
67
+				JButton BoutonInstallationRIV = new JButton("START INSTALLATION Rhino Inside Revit");
68
+				
69
+				
70
+				BoutonInstallationRIV.setFont(f);
71
+				BoutonInstallationRIV.setForeground(Color.WHITE);
72
+				BoutonInstallationRIV.setBackground(Color.LIGHT_GRAY);
73
+				
74
+				
75
+				cadran2.setLayout(cad1);
76
+				
77
+				cadran2_1 = new TextPanel(taillePolice);
78
+				cadran2_1.setBorder(bordure);
79
+				
80
+				cadran2_1.AjouterParagraph("  \n");
81
+				cadran2_1.AjouterParagraph("  L'installation du plugin Rhino.inside.revit pour réaliser la connexion entre \n");
82
+				cadran2_1.AjouterParagraph("  la définition de l'objet que l'ou veux ajouter et notre projet BIM actuel \n");
83
+				cadran2_1.AjouterParagraph("  Ce plugin va permettre de créer un onglet supplémentaire sur Revit (Rhinocéros) \n" );
84
+				cadran2_1.AjouterParagraph("  ce qui ajoute des fonctionnalités supplémentaires utilisables  \n" );
85
+				cadran2_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
86
+				cadran2_1.AjouterParagraph("  \n");
87
+				cadran2_1.setEditable(false);
88
+				
89
+				cadran2.add(cadran2_1);
90
+				cadran2.add(BoutonInstallationRIV);
91
+				
92
+				add(cadran2);
93
+				
94
+				BoutonInstallationWIP.addActionListener(new ActionListener() {
95
+			    	public void actionPerformed(ActionEvent event) {
96
+			    		
97
+						
98
+						Runtime rt = Runtime.getRuntime();
99
+						try {
100
+							rt.exec(new String[] {"External_Software/Rhino_Install.exe"});
101
+							
102
+						}
103
+						catch (IOException e) {
104
+							e.printStackTrace();
105
+						}		
106
+			    	}
107
+			    }
108
+				);
109
+				
110
+				BoutonInstallationRIV.addActionListener(new ActionListener() {
111
+			    	public void actionPerformed(ActionEvent event) {
112
+			    		Desktop desk = Desktop.getDesktop();
113
+						File file = new File("External_Software/RhinoInside.Revit.msi");
114
+						//Runtime rt = Runtime.getRuntime();
115
+						try { 
116
+							//rt.exec(new String[] {"msiexec /a \"\\External_Software/RhinoInside.Revit.msi\""});
117
+						desk.open(file);
118
+						
119
+							//"msiexec \"\\IE8fix.msi\""
120
+							
121
+						}
122
+						catch (IOException e) {
123
+							e.printStackTrace();
124
+						}		
125
+			    	}
126
+			    }
127
+				);
128
+	}
129
+}

+ 102
- 0
src/Application1/Pages/Page2.java View File

@@ -0,0 +1,102 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+
7
+import javax.swing.border.*;
8
+
9
+import Application1.TextPanel;
10
+
11
+public class Page2 extends JPanel {
12
+	
13
+	public Page2(int taillePolice, Border bordure){
14
+		//Initialitsation
15
+		TextPanel cadran1;
16
+		TextPanel cadran2;
17
+		TextPanel cadran3;
18
+		TextPanel cadran4;
19
+		GridLayout g= new GridLayout(2,2);
20
+		g.setHgap(10);
21
+		g.setVgap(10);
22
+		setLayout(g);
23
+		
24
+		//Cadran 1 
25
+		
26
+		cadran1 = new TextPanel(taillePolice);
27
+		cadran1.setBorder(bordure);
28
+		cadran1.AjouterParagraph("  \n");
29
+		cadran1.AjouterParagraph("  Pour le bon fonctionnement du système, il faut va falloir \n");
30
+		cadran1.AjouterParagraph("  que vous installiez au préalable deux logiciels.\n");
31
+		cadran1.AjouterParagraph("     * Revit (Développement d'Objets et de Structures 3D) \n");
32
+		cadran1.AjouterParagraph("     * Rhino.Inside.Revit (Outil utilisé en Association avec Revit avec le plugin Rhino WIP)\n");
33
+		cadran1.AjouterParagraph("  \n");
34
+		cadran1.AjouterParagraph("  Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
35
+		cadran1.AjouterParagraph("  elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
36
+		cadran1.AjouterParagraph("  \n");
37
+		cadran1.AjouterParagraph("  Lorsque tous les pré-requis précédent sont installés et vérifiés  \n");
38
+		cadran1.AjouterParagraph("  vous pouvez passez à la suite!\n");
39
+		cadran1.AjouterParagraph("  \n");
40
+		cadran1.setEditable(false);
41
+		
42
+		//Cadran 2 
43
+		
44
+		cadran2 = new TextPanel(taillePolice);
45
+	
46
+		cadran2.setBorder(bordure);
47
+		cadran2.AjouterParagraph("  \n");
48
+		cadran2.AjouterParagraph("  Avant de pouvoir utiliser l'application il reste \n");
49
+		cadran2.AjouterParagraph("  quelques étapes à parcourir. \n");
50
+		cadran2.AjouterParagraph("  \n");
51
+		cadran2.AjouterParagraph("  Nous allons vous guider dans l'installation de deux derniers \n");
52
+		cadran2.AjouterParagraph("  logiciels, tels que : \n");
53
+		cadran2.AjouterParagraph("     * GlovePie (Emulateur de Clavier et Souris) \n");
54
+		cadran2.AjouterParagraph("     * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
55
+		cadran2.AjouterParagraph("  \n");
56
+		cadran2.AjouterParagraph("  Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
57
+		cadran2.AjouterParagraph("  \n");
58
+		cadran2.setEditable(false);
59
+		
60
+		//Cadran 3
61
+		cadran3 = new TextPanel(taillePolice);
62
+		
63
+		cadran3.setBorder(bordure);
64
+		cadran3.AjouterParagraph("  \n");
65
+		cadran3.AjouterParagraph("  Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
66
+		cadran3.AjouterParagraph("  \n");
67
+		cadran3.AjouterParagraph("  Vous avez la possibilité à tout moment de retourner sur la page \n");
68
+		cadran3.AjouterParagraph("  précédente avec le bouton PRECEDENT. \n");
69
+		cadran3.AjouterParagraph("  \n");
70
+		cadran3.AjouterParagraph("  De la même manière, vous avez la possibilité de passer à la \n");
71
+		cadran3.AjouterParagraph("  suivante avec le bouton SUIVANT.\n");
72
+		cadran3.AjouterParagraph("  \n");
73
+		cadran3.setEditable(false);
74
+		
75
+		//Cadran 4 
76
+		
77
+		cadran4 = new TextPanel(taillePolice);
78
+	
79
+		cadran4.setBorder(bordure);
80
+		cadran4.AjouterParagraph("  \n");
81
+		cadran4.AjouterParagraph("  Le bouton LANCER VR est là pour vous permettre de passer en un \n");
82
+		cadran4.AjouterParagraph("  clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
83
+		cadran4.AjouterParagraph("  \n");
84
+		cadran4.AjouterParagraph("  ! Si vous avez déjà réaliser les installations sur votre machine \n");
85
+		cadran4.AjouterParagraph("  lors d'une précédente utilisation, il n'est pas nécessaire de \n");
86
+		cadran4.AjouterParagraph("  recommencer ! \n");
87
+		cadran4.AjouterParagraph("  \n");
88
+		cadran4.AjouterParagraph("  ! Cliquer directement sur LANCER VR ! \n");
89
+		cadran4.AjouterParagraph("  \n");
90
+		cadran4.setEditable(false);
91
+		
92
+		
93
+		//Ajouter les cadrans
94
+		add(cadran1);
95
+		add(cadran2);
96
+		add(cadran3);
97
+		add(cadran4);
98
+		
99
+		
100
+	}
101
+
102
+}

+ 97
- 0
src/Application1/Pages/Page3.java View File

@@ -0,0 +1,97 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+import java.io.IOException;
9
+
10
+import javax.swing.JButton;
11
+import javax.swing.JPanel;
12
+import javax.swing.border.*;
13
+
14
+import Application1.ImagePanel;
15
+import Application1.TextPanel;
16
+
17
+public class Page3 extends JPanel {
18
+	public Page3(int taillePolice, Border bordure){
19
+		
20
+		//Initialitsation
21
+		JPanel cadran1 = new JPanel();
22
+		TextPanel cadran1_1;
23
+		ImagePanel cadran2;
24
+		ImagePanel cadran3;
25
+		ImagePanel cadran4;
26
+		TextPanel Texte;
27
+		
28
+		JButton BoutonInstallationTrinus = new JButton("START INSTALLATION");
29
+		Font f = new Font("Serif", Font.BOLD, 45);
30
+		
31
+		BoutonInstallationTrinus.setFont(f);
32
+		BoutonInstallationTrinus.setForeground(Color.WHITE);
33
+		BoutonInstallationTrinus.setBackground(Color.LIGHT_GRAY);
34
+		
35
+		GridLayout g= new GridLayout(2,2);
36
+		GridLayout cad1 = new GridLayout(2,1);
37
+		g.setHgap(10);
38
+		g.setVgap(10);
39
+		setLayout(g);
40
+		
41
+		
42
+		//Cadran 1 
43
+		
44
+		cadran1.setLayout(cad1);
45
+		
46
+		cadran1_1 = new TextPanel(taillePolice);
47
+		cadran1_1.setBorder(bordure);
48
+		
49
+		cadran1_1.AjouterParagraph("  \n");
50
+		cadran1_1.AjouterParagraph("  L'installation du logiciel Trinus est nécessaire pour le bon \n");
51
+		cadran1_1.AjouterParagraph("  fonctionnement de notre système. \n");
52
+		cadran1_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
53
+		cadran1_1.AjouterParagraph("  Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
54
+		cadran1_1.AjouterParagraph("  \n");
55
+		cadran1_1.setEditable(false);
56
+		
57
+		cadran1.add(cadran1_1);
58
+		cadran1.add(BoutonInstallationTrinus);
59
+		
60
+
61
+		//Cadran 2
62
+		cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
63
+		cadran2.setBorder(bordure);
64
+		
65
+		//Cadran3 
66
+		cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
67
+		cadran3.setBorder(bordure);
68
+		
69
+		//Cadran 4
70
+		cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
71
+		cadran4.setBorder(bordure);
72
+		
73
+		//Ajouter les cadrans
74
+		add(cadran1);
75
+		add(cadran2);
76
+		add(cadran3);
77
+		add(cadran4);
78
+		
79
+		BoutonInstallationTrinus.addActionListener(new ActionListener() {
80
+	    	public void actionPerformed(ActionEvent event) {
81
+	    		
82
+				
83
+				Runtime rt = Runtime.getRuntime();
84
+				try {
85
+					rt.exec(new String[] {"External_Software/TGsetup.exe"});
86
+					
87
+				}
88
+				catch (IOException e) {
89
+					e.printStackTrace();
90
+				}		
91
+	    	}
92
+	    }
93
+		);
94
+		
95
+	}
96
+
97
+}

+ 49
- 0
src/Application1/Pages/Page4.java View File

@@ -0,0 +1,49 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+import javax.swing.border.*;
7
+
8
+import Application1.ImagePanel;
9
+
10
+public class Page4 extends JPanel {
11
+	
12
+	public Page4(int taillePolice, Border bordure){
13
+		//Initialitsation
14
+		ImagePanel cadran1;
15
+		ImagePanel cadran2;
16
+		ImagePanel cadran3;
17
+		ImagePanel cadran4;
18
+		GridLayout g= new GridLayout(2,2);
19
+		g.setHgap(10);
20
+		g.setVgap(10);
21
+		setLayout(g);
22
+		
23
+		//Cadran 1
24
+		cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
25
+		cadran1.setBorder(bordure);
26
+		
27
+		//Cadran 2
28
+		cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
29
+		cadran2.setBorder(bordure);
30
+		
31
+		//Cadran 3
32
+		cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
33
+		cadran3.setBorder(bordure);
34
+		
35
+		//Cadran 4
36
+		cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
37
+		cadran4.setBorder(bordure);
38
+	
39
+		
40
+		//Ajout des cadrans
41
+		add(cadran1);
42
+		add(cadran2);
43
+		add(cadran3);
44
+		add(cadran4);
45
+		
46
+		
47
+	}
48
+
49
+}

+ 106
- 0
src/Application1/Pages/Page5.java View File

@@ -0,0 +1,106 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+import java.io.IOException;
9
+
10
+import javax.swing.JButton;
11
+import javax.swing.JPanel;
12
+import javax.swing.border.*;
13
+
14
+import Application1.ImagePanel;
15
+import Application1.TextPanel;
16
+
17
+public class Page5 extends JPanel{
18
+	
19
+	public Page5(int taillePolice, Border bordure){
20
+	//Initialitsation
21
+	JPanel cadran1 = new JPanel();
22
+	TextPanel cadran1_1;
23
+	ImagePanel cadran2;
24
+	ImagePanel cadran3;
25
+	ImagePanel cadran4;
26
+	
27
+	
28
+	JButton BoutonInstallationManette = new JButton("START INSTALLATION");
29
+	Font f = new Font("Serif", Font.BOLD, 45);
30
+	
31
+	BoutonInstallationManette.setFont(f);
32
+	BoutonInstallationManette.setForeground(Color.WHITE);
33
+	BoutonInstallationManette.setBackground(Color.LIGHT_GRAY);
34
+	
35
+	GridLayout g= new GridLayout(2,2);
36
+	GridLayout cad1 = new GridLayout(2,1);
37
+	g.setHgap(10);
38
+	g.setVgap(10);
39
+	setLayout(g);
40
+	
41
+	//Cadran 1 
42
+	
43
+	cadran1.setLayout(cad1);
44
+	cadran1.setBorder(bordure);
45
+	
46
+	cadran1_1 = new TextPanel(taillePolice);
47
+
48
+	cadran1_1.setBorder(bordure);
49
+	
50
+	cadran1_1.AjouterParagraph("  \n");
51
+	cadran1_1.AjouterParagraph("  Pour finir, nous devons installer la manette Wiimote. \n");
52
+	cadran1_1.AjouterParagraph("  Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
53
+	cadran1_1.AjouterParagraph("  Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
54
+	cadran1_1.AjouterParagraph("  Suivez les étapes d'installation avec les images suivantes. \n");
55
+	cadran1_1.AjouterParagraph("  \n");
56
+
57
+	cadran1_1.setEditable(false);
58
+	
59
+	cadran1.add(cadran1_1);
60
+	cadran1.add(BoutonInstallationManette);
61
+	
62
+	
63
+	//Cadran 2
64
+	cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
65
+	cadran2.setBorder(bordure);
66
+	
67
+	
68
+	//Cadran 3 
69
+	cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
70
+	cadran3.setBorder(bordure);
71
+	
72
+	
73
+	//Cadran 4 
74
+	cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
75
+	cadran4.setBorder(bordure);
76
+	
77
+	
78
+	//Ajout des cadrans
79
+	add(cadran1);
80
+	add(cadran2);
81
+	add(cadran3);
82
+	add(cadran4);
83
+	
84
+	
85
+	//BoutonInstallationManette.addActionListener(new ActionListener() {});
86
+
87
+	
88
+	BoutonInstallationManette.addActionListener(new ActionListener() {
89
+		public void actionPerformed(ActionEvent event) {
90
+    		//Lancement du panneau de configuration
91
+			
92
+			Runtime rt = Runtime.getRuntime();
93
+			try {
94
+				rt.exec(new String[] {"cmd.exe","/c","start","control"});
95
+				
96
+			}
97
+			catch (IOException e) {
98
+				e.printStackTrace();
99
+			}		
100
+    	}
101
+    }
102
+	);
103
+	
104
+
105
+}
106
+}

+ 104
- 0
src/Application1/Pages/Page6.java View File

@@ -0,0 +1,104 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+
9
+import javax.swing.JButton;
10
+import javax.swing.JPanel;
11
+import javax.swing.border.*;
12
+
13
+import Application1.PathVar;
14
+import Application1.TextPanel;
15
+
16
+
17
+public class Page6 extends JPanel {
18
+	
19
+	public Page6(int taillePolice, Border bordure) {
20
+		//Installation
21
+		TextPanel cadran1;
22
+		TextPanel cadran2;
23
+		TextPanel cadran5;
24
+		JPanel cadran3;
25
+		JPanel cadran4;
26
+		JPanel cadran6;
27
+		JButton BoutonVarEnvTrinus;
28
+		JButton BoutonVarEnvRevit;
29
+		JButton BoutonVarEnvWIP;
30
+		Font f = new Font("Serif", Font.BOLD, 15);
31
+		BoutonVarEnvTrinus = new JButton("  Indiquer où se trouve le logiciel Trinus");
32
+		BoutonVarEnvRevit = new JButton("  Indiquer où se trouve le logiciel de CAD");
33
+		BoutonVarEnvWIP = new JButton("  Indiquer où se trouve le logiciel Rhino WIP");
34
+		BoutonVarEnvRevit.setFont(f);
35
+		BoutonVarEnvRevit.setForeground(Color.BLACK);
36
+		BoutonVarEnvRevit.setBackground(Color.LIGHT_GRAY);
37
+		BoutonVarEnvTrinus.setFont(f);
38
+		BoutonVarEnvTrinus.setForeground(Color.BLACK);
39
+		BoutonVarEnvTrinus.setBackground(Color.LIGHT_GRAY);
40
+		BoutonVarEnvWIP.setFont(f);
41
+		BoutonVarEnvWIP.setForeground(Color.BLACK);
42
+		BoutonVarEnvWIP.setBackground(Color.LIGHT_GRAY);
43
+		
44
+		GridLayout grid = new GridLayout(2,2);
45
+		grid.setHgap(10);
46
+		grid.setVgap(10);
47
+		setLayout(grid);
48
+		
49
+		
50
+		//Cadran 1
51
+		cadran1 = new TextPanel(taillePolice);
52
+		cadran1.AjouterParagraph("  Veuillez indiquer ou vous avez installé le logiciel Trinus. \n");
53
+		cadran1.AjouterParagraph("  Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.\n");
54
+		cadran1.AjouterParagraph("  Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
55
+		cadran1.setEditable(false);
56
+		cadran1.setBorder(bordure);
57
+		// Cadran 2
58
+		cadran2 = new TextPanel(taillePolice);
59
+		cadran2.AjouterParagraph("  Veuillez indiquer ou vous avez installé le logiciel de CAD. \n  De préferance Revit, puisque notre système est optimisé pour l'utilisation de Revit.\n ");
60
+		cadran2.AjouterParagraph("  Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.\n");
61
+		cadran2.AjouterParagraph("  Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
62
+		cadran2.setEditable(false);
63
+		cadran2.setBorder(bordure);
64
+		
65
+		//Cadran 3 
66
+		cadran3 = new JPanel();
67
+		
68
+		cadran3.add(BoutonVarEnvTrinus);
69
+		
70
+		//Cadran 4 
71
+		cadran4 = new JPanel();
72
+		
73
+		cadran4.add(BoutonVarEnvRevit);
74
+		
75
+		
76
+		
77
+		
78
+		
79
+		//Ajout des cadran
80
+		add(cadran1);
81
+		add(cadran2);
82
+		add(cadran3);
83
+		add(cadran4);
84
+		
85
+		PathVar pathVar = new PathVar();
86
+		BoutonVarEnvTrinus.addActionListener(new ActionListener() {
87
+	    	public void actionPerformed(ActionEvent event) {
88
+	    		pathVar.getPath("Trinus");
89
+	    			
90
+	    	}
91
+	    }
92
+		);
93
+		
94
+		BoutonVarEnvRevit.addActionListener(new ActionListener() {
95
+	    	public void actionPerformed(ActionEvent event) {
96
+	    		pathVar.getPath("Revit");
97
+	    			
98
+	    	}
99
+	    });
100
+	
101
+		
102
+	}
103
+
104
+}

+ 195
- 0
src/Application1/Pages/Page7.java View File

@@ -0,0 +1,195 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Desktop;
5
+import java.awt.FlowLayout;
6
+import java.awt.Font;
7
+import java.awt.GridLayout;
8
+import java.awt.event.ActionEvent;
9
+import java.awt.event.ActionListener;
10
+import java.io.File;
11
+import java.io.IOException;
12
+
13
+import javax.swing.JButton;
14
+import javax.swing.JPanel;
15
+import javax.swing.border.*;
16
+
17
+import Application1.PathVar;
18
+import Application1.TextPanel;
19
+
20
+public class Page7 extends JPanel {
21
+	public Page7(int taillePolice, Border bordure) {
22
+		
23
+		
24
+		//Initialitsation
25
+		PathVar path = new PathVar();
26
+		TextPanel cadran1;
27
+		JPanel cadran2;
28
+		
29
+		Font f = new Font("Serif", Font.BOLD, 15);
30
+		
31
+		JButton BoutonGlovePie = new JButton("Lancer GLovePie");
32
+		BoutonGlovePie.setFont(f);
33
+		BoutonGlovePie.setForeground(Color.BLACK);
34
+		BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
35
+		
36
+		JButton BoutonTrinus = new JButton("Lancer Trinus");
37
+		BoutonTrinus.setFont(f);
38
+		BoutonTrinus.setForeground(Color.BLACK);
39
+		BoutonTrinus.setBackground(Color.LIGHT_GRAY);
40
+	
41
+		JButton BoutonRevit = new JButton("Lancer Revit");
42
+		BoutonRevit.setFont(f);
43
+		BoutonRevit.setForeground(Color.BLACK);
44
+		BoutonRevit.setBackground(Color.LIGHT_GRAY);
45
+		
46
+		JButton BoutonInternet = new JButton("Lancer AutoDesk View");
47
+		BoutonInternet.setFont(f);
48
+		BoutonInternet.setForeground(Color.BLACK);
49
+		BoutonInternet.setBackground(Color.LIGHT_GRAY);
50
+		
51
+		JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
52
+		BoutonClavier.setFont(f);
53
+		BoutonClavier.setForeground(Color.BLACK);
54
+		BoutonClavier.setBackground(Color.LIGHT_GRAY);
55
+		
56
+		GridLayout grid= new GridLayout(2,2);
57
+		FlowLayout flow = new FlowLayout();
58
+		grid.setHgap(10);
59
+		grid.setVgap(10);
60
+		setLayout(grid);
61
+		
62
+		//Cadran 1
63
+		cadran1 = new TextPanel(taillePolice);
64
+		cadran1.AjouterParagraph("  \n");
65
+		cadran1.AjouterParagraph("  Le système est prêt à être utilisé! \n");
66
+		cadran1.AjouterParagraph("  \n");
67
+		cadran1.AjouterParagraph("  Les logiciels suivant sont bien installés sur la machine : \n ");
68
+		cadran1.AjouterParagraph("     * GlovePie \n");
69
+		cadran1.AjouterParagraph("      * Trinus \n");
70
+		cadran1.AjouterParagraph("  La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
71
+		cadran1.AjouterParagraph("  \n");
72
+		cadran1.AjouterParagraph("  Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
73
+		cadran1.AjouterParagraph("  \n");
74
+		cadran1.setEditable(false);
75
+		cadran1.setBorder(bordure);
76
+		
77
+		//Cadran 2
78
+		cadran2 = new JPanel();
79
+		cadran2.setLayout(flow);
80
+		cadran2.add(BoutonGlovePie);
81
+		cadran2.add(BoutonTrinus);
82
+		cadran2.add(BoutonRevit);
83
+		cadran2.add(BoutonInternet);
84
+		cadran2.add(BoutonClavier);
85
+		
86
+		//Gestion Boutons
87
+
88
+		BoutonGlovePie.addActionListener(new ActionListener() {
89
+	    	public void actionPerformed(ActionEvent event) {
90
+	    		//Lancement du panneau de configuration
91
+	    		File file = new File("External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE");
92
+	    		java.awt.Desktop desktop = Desktop.getDesktop();
93
+	    		
94
+	    		try {
95
+	    			
96
+					desktop.open(file);
97
+					
98
+				} catch (IOException e) {
99
+					// TODO Auto-generated catch block
100
+					e.printStackTrace();
101
+
102
+				}
103
+				} 
104
+	    	}
105
+	    );
106
+		
107
+		BoutonTrinus.addActionListener(new ActionListener() {
108
+	    	public void actionPerformed(ActionEvent event) {
109
+	    		try {
110
+	    			
111
+					path.readPathFile();
112
+					File file = new File(path.getPathTrinus());
113
+		    		java.awt.Desktop desktop = Desktop.getDesktop();
114
+		    		desktop.open(file);
115
+				} catch (IOException e1) {
116
+					// TODO Auto-generated catch block
117
+					e1.printStackTrace();
118
+				}
119
+					
120
+	    		
121
+	    		
122
+	    		
123
+					
124
+		    		
125
+
126
+	    	}
127
+	    });
128
+		BoutonRevit.addActionListener(new ActionListener() {
129
+	    	public void actionPerformed(ActionEvent event) {
130
+	    		try {
131
+					path.readPathFile();
132
+					File file = new File(path.getPathRevit());
133
+		    		java.awt.Desktop desktop = Desktop.getDesktop();
134
+		    		desktop.open(file);
135
+				} catch (IOException e1) {
136
+					// TODO Auto-generated catch block
137
+					e1.printStackTrace();
138
+				}
139
+					
140
+	    		
141
+	    		
142
+	    		
143
+					
144
+		    		
145
+
146
+	    	}
147
+	    });
148
+		
149
+		BoutonInternet.addActionListener(new ActionListener() {
150
+	    	public void actionPerformed(ActionEvent event) {
151
+	    		//Lancement du panneau de configuration
152
+				
153
+				Runtime rt = Runtime.getRuntime();
154
+				try {
155
+					rt.exec(new String[] {"cmd.exe","/c","start","https://viewer.autodesk.com/"});
156
+					
157
+				}catch (IOException e) {
158
+					e.printStackTrace();
159
+				}
160
+
161
+	    	}
162
+	    });
163
+		
164
+		BoutonClavier.addActionListener(new ActionListener() {
165
+	    	public void actionPerformed(ActionEvent event) {
166
+	    		//Lancement du panneau de configuration
167
+				
168
+				Runtime rt = Runtime.getRuntime();
169
+				try {
170
+					rt.exec(new String[] {"cmd.exe","/c","start","osk"});
171
+					
172
+				}catch (IOException e) {
173
+					e.printStackTrace();
174
+				}
175
+	    			
176
+	    	}
177
+	    });
178
+		
179
+		
180
+		
181
+		
182
+		
183
+		
184
+		
185
+		
186
+		//Ajout Cadran
187
+		add(cadran1);
188
+		add(cadran2);
189
+		
190
+		
191
+		
192
+		
193
+	}
194
+
195
+}

+ 53
- 0
src/Application1/Pages/Page8.java View File

@@ -0,0 +1,53 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+import javax.swing.border.Border;
7
+
8
+import Application1.ImagePanel;
9
+import Application1.TextPanel;
10
+
11
+public class Page8 extends JPanel {
12
+	public Page8(int taillePolice, Border bordure){
13
+		TextPanel cadran1;
14
+
15
+		GridLayout g= new GridLayout(2,2);
16
+		g.setHgap(10);
17
+		g.setVgap(10);
18
+		setLayout(g);
19
+		
20
+		//Cadran 1
21
+		
22
+		cadran1 = new TextPanel(taillePolice);
23
+		cadran1.setBorder(bordure);
24
+		cadran1.AjouterParagraph("  \n");
25
+		
26
+	
27
+		cadran1.AjouterParagraph("  Cette partie permet de comprendre comment importer un objet paramétrable sur votre projet Revit \n");
28
+		cadran1.AjouterParagraph("  \n");
29
+		cadran1.AjouterParagraph("  L'objectif et de pouvoir visualiser l'objet en temps réel et de changer ses paramètres directement sur Revit\n");
30
+		
31
+		cadran1.AjouterParagraph("  Le temps de calcul différera en fonction de la puissance de votre processeur, soyez patient !\n");
32
+		cadran1.AjouterParagraph("  \n");
33
+		cadran1.AjouterParagraph("  Veuillez à présent suivre le tutoriel  \n");
34
+		cadran1.AjouterParagraph("  \n");
35
+		cadran1.setEditable(false);
36
+		
37
+	
38
+		
39
+		
40
+		
41
+		
42
+		
43
+		
44
+		
45
+		
46
+		
47
+		
48
+		//Ajouter les cadrans
49
+				add(cadran1);
50
+			
51
+		
52
+	}
53
+}

+ 86
- 0
src/Application1/Pages/Page9.java View File

@@ -0,0 +1,86 @@
1
+package Application1.Pages;
2
+
3
+
4
+
5
+import java.awt.GridLayout;
6
+
7
+import javax.swing.JPanel;
8
+import javax.swing.border.Border;
9
+
10
+import Application1.ImagePanel;
11
+import Application1.TextPanel;
12
+
13
+public class Page9 extends JPanel {
14
+	public Page9(int taillePolice, Border bordure){
15
+		TextPanel cadran1;
16
+		ImagePanel cadran2;
17
+		TextPanel cadran3;
18
+		ImagePanel cadran4;
19
+		GridLayout g= new GridLayout(2,2);
20
+		g.setHgap(10);
21
+		g.setVgap(10);
22
+		setLayout(g);
23
+		
24
+		//Cadran 1
25
+		
26
+		cadran1 = new TextPanel(taillePolice);
27
+		cadran1.setBorder(bordure);
28
+		cadran1.AjouterParagraph("  \n");
29
+		
30
+	
31
+		cadran1.AjouterParagraph("  Ouvrir votre projet sur Revit \n");
32
+		cadran1.AjouterParagraph("  \n");
33
+		cadran1.AjouterParagraph("  Placer vous dans la vue {3D}");
34
+		cadran1.AjouterParagraph("  Cliquer sur l'onglet Addins\n");
35
+		
36
+		cadran1.AjouterParagraph("  Cliquer sur le bouton Rhino WIP pour lancer le plugin\n");
37
+		cadran1.AjouterParagraph("  \n");
38
+		cadran1.AjouterParagraph("  Cliquer sur l'onglet Rhinocéros  \n");
39
+		cadran1.AjouterParagraph("  \n");
40
+		cadran1.AjouterParagraph("  Cliquer sur l'onglet Grasshopper \n");
41
+		cadran1.AjouterParagraph("  \n");
42
+		cadran1.AjouterParagraph(" Sur la photo, vous observez les différents boutons de l'onglet Rhinocéros \n");
43
+		cadran1.AjouterParagraph("  \n");
44
+		
45
+		
46
+		cadran1.setEditable(false);
47
+		
48
+		//Cadran 2
49
+		cadran2 = new ImagePanel("Images/Tuto_Revit/1.png");
50
+		cadran2.setBorder(bordure);
51
+		
52
+		
53
+		//Cadran 3
54
+		cadran3 = new TextPanel(taillePolice);
55
+		
56
+		cadran3.setBorder(bordure);
57
+		cadran3.AjouterParagraph("  \n");
58
+		cadran3.AjouterParagraph("  Dans Grasshopper, faites File->Open Document->...\n");
59
+		cadran3.AjouterParagraph(" L'objet Paravent6 est l'objet qu'on a choisi d'utiliser comme exemple \n");
60
+		cadran3.AjouterParagraph("  \n");
61
+		cadran3.AjouterParagraph("  Cliquer sur le bouton Recompute de l'onglet Rhinocéros de Revit pour afficher l'objet \n");
62
+		cadran3.AjouterParagraph("  Cliquer sur l'objet qui apparaît \n");
63
+		cadran3.AjouterParagraph("  Parmi les paramètres de l'objet proposés dans la bande (properties, other), \n");
64
+		cadran3.AjouterParagraph("  L'utilisateur peut changer les paramètres en écrivant la valeur souhaitée, ou en cliquant sur les petites flèches \n");
65
+		cadran3.AjouterParagraph("  A chaque changement de paramètre, il faut appuyer sur le bouton Recompute de l'onglet Rhinocéros \n");
66
+		cadran3.AjouterParagraph("  \n");
67
+		cadran3.setEditable(false);
68
+		
69
+		
70
+		
71
+		
72
+		
73
+		
74
+		
75
+		
76
+		
77
+		//Ajouter les cadrans
78
+				add(cadran1);
79
+				add(cadran2);
80
+				
81
+				
82
+			
83
+		
84
+	}
85
+
86
+}

+ 118
- 0
src/Application1/PathVar.java View File

@@ -0,0 +1,118 @@
1
+package Application1;
2
+
3
+import java.io.BufferedWriter;
4
+import java.io.FileNotFoundException;
5
+import java.io.FileOutputStream;
6
+import java.io.FileReader;
7
+import java.io.FileWriter;
8
+import java.io.IOException;
9
+import java.io.Writer;
10
+import java.nio.file.Files;
11
+import java.nio.file.*;
12
+
13
+import javax.swing.JFileChooser;
14
+import javax.swing.JPanel;
15
+
16
+public class PathVar {
17
+	private String pathTrinus;
18
+	private String pathRevit;
19
+	
20
+	
21
+	public PathVar() {
22
+		pathTrinus = ".";
23
+		pathRevit = ".";
24
+	
25
+	}
26
+	
27
+	
28
+	public void readPathFile() throws IOException{
29
+		String pathData = "";
30
+		
31
+		pathData = new String(Files.readAllBytes(Paths.get("Path/Path.txt")));
32
+		String[] parts = pathData.split("\n");
33
+		if (parts[0].contentEquals("Trinus")){
34
+			pathTrinus = parts[1];
35
+			
36
+		
37
+		}else if (parts[2].contentEquals("Trinus")) {
38
+			pathTrinus = parts[3];
39
+			
40
+		}
41
+		if (parts[2].contentEquals("Revit")) {
42
+			pathRevit = parts[3];
43
+			
44
+		}else if (parts[0].contentEquals("Revit")) {
45
+			pathRevit = parts[1];
46
+			
47
+		}
48
+	}
49
+		
50
+		
51
+	
52
+		
53
+		public void writePathFile(String pathToWrite) {
54
+			try {
55
+				BufferedWriter output;
56
+				output = new BufferedWriter(new FileWriter("Path/Path.txt",true));
57
+				output.append(pathToWrite.concat("\n"));
58
+				output.close();
59
+				
60
+			} catch (FileNotFoundException e) {
61
+				// TODO Auto-generated catch block
62
+				e.printStackTrace();
63
+			} catch (IOException e) {
64
+				// TODO Auto-generated catch block
65
+				e.printStackTrace();
66
+			}
67
+			
68
+		}
69
+	
70
+	
71
+	public void getPath (String program) {
72
+		String path = ".";
73
+		int result = -99;
74
+		JFileChooser fileChooser = new JFileChooser();
75
+		
76
+			result = fileChooser.showOpenDialog(new JPanel());
77
+			if(result == JFileChooser.APPROVE_OPTION)
78
+			{
79
+				path = fileChooser.getSelectedFile().getAbsolutePath();
80
+			}
81
+			
82
+			
83
+			if (program == "Trinus") {
84
+				writePathFile("Trinus");
85
+				writePathFile(path);
86
+				pathTrinus = path;
87
+				
88
+			}
89
+			else if (program == "Revit") {
90
+				writePathFile("Revit");
91
+				writePathFile(path);
92
+				pathRevit = path;
93
+			}
94
+			
95
+		
96
+		
97
+	
98
+		
99
+		
100
+		
101
+	}
102
+	
103
+	public String getPathTrinus() {
104
+		return pathTrinus;
105
+	}
106
+	
107
+	public String getPathRevit() {
108
+		return pathRevit;
109
+	}
110
+	
111
+	
112
+	
113
+	
114
+	
115
+	
116
+	
117
+
118
+}

+ 29
- 0
src/Application1/TextPanel.java View File

@@ -0,0 +1,29 @@
1
+package Application1;
2
+
3
+import java.awt.Font;
4
+
5
+import javax.swing.BorderFactory;
6
+import javax.swing.JTextArea;
7
+
8
+public class TextPanel extends JTextArea {
9
+	
10
+	public TextPanel(int taille) {
11
+		super();
12
+	Font police = new Font("Century", Font.PLAIN, taille);
13
+		this.setFont(police);	
14
+		this.setLineWrap(true);
15
+		this.setWrapStyleWord(true);
16
+		
17
+		
18
+		
19
+	}
20
+	
21
+	public void AjouterParagraph(String txt) {
22
+		this.append(txt);
23
+		
24
+	}
25
+	
26
+	
27
+	
28
+
29
+}

+ 57
- 0
src/Application1/Title.java View File

@@ -0,0 +1,57 @@
1
+package Application1;
2
+
3
+import java.awt.BorderLayout;
4
+import java.awt.Color;
5
+import java.awt.Dimension;
6
+import java.awt.Font;
7
+import java.awt.Graphics;
8
+import java.awt.Image;
9
+import java.io.File;
10
+import java.io.IOException;
11
+
12
+import javax.imageio.ImageIO;
13
+import javax.swing.JLabel;
14
+import javax.swing.JPanel;
15
+import javax.swing.border.EmptyBorder;
16
+
17
+public class Title extends JPanel {
18
+	
19
+
20
+	public Title() {
21
+	JLabel Titre = new JLabel("BIM Studio");// ???????????????
22
+	Font police = new Font("Century", Font.BOLD, 24); 
23
+	Titre.setFont(police);  
24
+    Titre.setForeground(Color.black);
25
+    this.setBackground(Color.WHITE);
26
+    
27
+   
28
+    this.add(Titre, BorderLayout.CENTER);
29
+    this.setPreferredSize(new Dimension(1200,100));
30
+    this.setBorder(new EmptyBorder(50,50,50,50));
31
+    
32
+}
33
+public void paintComponent(Graphics g) {
34
+	try {
35
+		Image img1 = ImageIO.read(new File("Images/Logos/Logo_INSA.png"));
36
+		Image img2 = ImageIO.read(new File("Images/Logos/Logo_ISDAT.png"));
37
+		Image img3 = ImageIO.read(new File("Images/Logos/Nom_cours.png"));
38
+		g.setColor(Color.WHITE);
39
+		g.fillRect(0, 0, this.getWidth(), this.getHeight());
40
+		g.drawImage(img1, 20, 10,260,130,0,0,354,142, this);
41
+		g.drawImage(img2, 200, 10,370,100,0,0,711,352, this);
42
+		g.drawImage(img3, this.getWidth() - 270, 10, this.getWidth() - 12, 100, 0, 0, 260, 63, this);
43
+		
44
+		
45
+		
46
+		
47
+		
48
+		
49
+	} catch (IOException e) {
50
+		// TODO Auto-generated catch block
51
+		e.printStackTrace();
52
+	}
53
+	
54
+	
55
+	
56
+}
57
+}

Loading…
Cancel
Save