Java rebluid

oualid25 Messages postés 12 Date d'inscription samedi 11 février 2017 Statut Membre Dernière intervention 5 juin 2017 - 17 mai 2017 à 12:32
oualid25 Messages postés 12 Date d'inscription samedi 11 février 2017 Statut Membre Dernière intervention 5 juin 2017 - 17 mai 2017 à 12:33
Bonjour,
j'ai un petite application que j'utilise pour allumer ou éteindre des pc sauf que j'ai rajouter des pc mais que l'application est faites pour etre utiliser avec 12 pc uniquement que j'ai recompiler avec netbeans en ajoutant ou modifiant des ip mac etc sauf que maintenant je veut modifier l'interface graphique en ajoutant deux trois ou quatre buttons merci d'avance

1 réponse

oualid25 Messages postés 12 Date d'inscription samedi 11 février 2017 Statut Membre Dernière intervention 5 juin 2017
17 mai 2017 à 12:33
/* */ package GUI;
/* */
/* */ import core.Send;
/* */ import java.awt.Color;
/* */ import java.awt.EventQueue;
/* */ import java.awt.event.ActionEvent;
/* */ import java.awt.event.ActionListener;
/* */ import javax.swing.GroupLayout;
/* */ import javax.swing.LayoutStyle;
/* */ import javax.swing.GroupLayout.Alignment;
/* */ import javax.swing.GroupLayout.ParallelGroup;
/* */ import javax.swing.GroupLayout.SequentialGroup;
/* */ import javax.swing.JButton;
/* */ import javax.swing.JFrame;
/* */ import javax.swing.JOptionPane;
/* */ import javax.swing.JPanel;
/* */ import javax.swing.UIManager;
/* */ import javax.swing.border.EmptyBorder;
/* */ import javax.swing.border.TitledBorder;
/* */
/* */
/* */
/* */
/* */ public class Gui
/* */ extends JFrame
/* */ {
/* */ private JPanel contentPane;
/* 28 */ private static String[] MACADDR = new String[14];
/* 29 */ private static String[] IPADDR = new String[14];
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void main(String[] args)
/* */ {
/* 38 */ EventQueue.invokeLater(new Runnable() {
/* */ public void run() {
/* */ try {
/* 41 */ Gui frame = new Gui();
/* 42 */ frame.setVisible(true);
/* */ } catch (Exception e) {
/* 44 */ e.printStackTrace();
/* */ }
/* */ }
/* */ });
/* */ }
/* */
/* */
/* */
/* */ public Gui()
/* */ {
/* 54 */ setTitle("Net Manager TCF Rebuild by Menkhour oualid");
/* 55 */ setResizable(true);
/* */
/* 57 */ MACADDR[0] = "D0-27-88-C6-0B-97";
/* 58 */ MACADDR[1] = "D0-27-88-C6-04-65";
/* 59 */ MACADDR[2] = "D0-27-88-C6-E3-9C";
/* 60 */ MACADDR[3] = "D0-27-88-C5-19-49";
/* 61 */ MACADDR[4] = "D0-27-88-C6-0B-AE";
/* 62 */ MACADDR[5] = "D0-27-88-C6-0A-D8";
/* 63 */ MACADDR[6] = "D0-27-88-C6-0B-99";
/* 64 */ MACADDR[7] = "D0-27-88-C6-0B-EC";
/* 65 */ MACADDR[8] = "D0-27-88-C6-E0-60";
/* 66 */ MACADDR[9] = "74-46-A0-A3-9E-C6";
/* 67 */ MACADDR[10] = "D0-27-88-C6-04-61";
/* 68 */ MACADDR[11] = "D0-27-88-C6-DF-BC";
/* 69 */ MACADDR[12] = "D0-27-88-C6-04-68";
MACADDR[13] = "74-46-A0-A3-9E-C4";
/* */
/* 70 */ IPADDR[0] = "192.168.0.156";
/* 71 */ IPADDR[1] = "192.168.0.142";
/* 72 */ IPADDR[2] = "192.168.0.143";
/* 73 */ IPADDR[3] = "192.168.0.144";
/* 74 */ IPADDR[4] = "192.168.0.145";
/* 75 */ IPADDR[5] = "192.168.0.146";
/* 76 */ IPADDR[6] = "192.168.0.147";
/* 77 */ IPADDR[7] = "192.168.0.148";
/* 78 */ IPADDR[8] = "192.168.0.149";
/* 79 */ IPADDR[9] = "192.168.0.150";
/* 80 */ IPADDR[10] = "192.168.0.151";
/* 81 */ IPADDR[11] = "192.168.0.152";
/* */ IPADDR[12] = "192.168.0.153";
/* */ IPADDR[13] = "192.168.0.154";
/* */
/* 83 */ setDefaultCloseOperation(3);
/* 84 */ setBounds(100, 100, 800, 600);
/* 85 */ this.contentPane = new JPanel();
/* 86 */ this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
/* 87 */ setContentPane(this.contentPane);
/* */
/* 89 */ JPanel panel = new JPanel();
/* 90 */ panel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Groupe : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 92 */ JPanel panel_1 = new JPanel();
/* 93 */ panel_1.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Poste 01 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 95 */ JPanel panel_2 = new JPanel();
/* 96 */ panel_2.setBorder(new TitledBorder(null, "Poste 02 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 98 */ JButton btnStart02 = new JButton("Start");
/* 99 */ btnStart02.addActionListener(new ActionListener()
/* */ {
/* */ public void actionPerformed(ActionEvent e) {
/* 102 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 02 ?", "Confirmer", 0);
/* 103 */ if (reply == 0) {
/* 104 */ Send sen = new Send(Gui.MACADDR[1], "WakeUp");
/* 105 */ sen.senderOne();
/* 106 */ sen = null;
/* */ }
/* */
/* */ }
/* 110 */ });
/* 111 */ JButton btnRestart02 = new JButton("Restart");
/* 112 */ btnRestart02.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 114 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 02 ?", "Confirmer", 0);
/* 115 */ if (reply == 0) {
/* 116 */ Send sen = new Send(Gui.IPADDR[1], "Restart");
/* 117 */ sen.senderOne();
/* 118 */ sen = null;
/* */ }
/* */
/* */ }
/* 122 */ });
/* 123 */ JButton btnShutdown02 = new JButton("Shutdown");
/* 124 */ btnShutdown02.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 126 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 02 ?", "Confirmer", 0);
/* 127 */ if (reply == 0) {
/* 128 */ Send sen = new Send(Gui.IPADDR[1], "ShutDown");
/* 129 */ sen.senderOne();
/* 130 */ sen = null;
/* */ }
/* */ }
/* 133 */ });
/* 134 */ GroupLayout gl_panel_2 = new GroupLayout(panel_2);
/* 135 */ gl_panel_2.setHorizontalGroup(
/* 136 */ gl_panel_2.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 137 */ .addGap(0, 359, 32767)
/* 138 */ .addGroup(gl_panel_2.createSequentialGroup()
/* 139 */ .addGap(65)
/* 140 */ .addComponent(btnStart02, -2, 70, -2)
/* 141 */ .addGap(12)
/* 142 */ .addComponent(btnRestart02)
/* 143 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 144 */ .addComponent(btnShutdown02)
/* 145 */ .addContainerGap(21, 32767)));
/* */
/* 147 */ gl_panel_2.setVerticalGroup(
/* 148 */ gl_panel_2.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 149 */ .addGap(0, 62, 32767)
/* 150 */ .addGroup(gl_panel_2.createSequentialGroup()
/* 151 */ .addGroup(gl_panel_2.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 152 */ .addComponent(btnShutdown02)
/* 153 */ .addComponent(btnStart02)
/* 154 */ .addComponent(btnRestart02))
/* 155 */ .addContainerGap(-1, 32767)));
/* */
/* 157 */ panel_2.setLayout(gl_panel_2);
/* */
/* 159 */ JPanel panel_3 = new JPanel();
/* 160 */ panel_3.setBorder(new TitledBorder(null, "Poste 03 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 162 */ JButton btnStart03 = new JButton("Start");
/* 163 */ btnStart03.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 165 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 03 ?", "Confirmer", 0);
/* 166 */ if (reply == 0) {
/* 167 */ Send sen = new Send(Gui.MACADDR[2], "WakeUp");
/* 168 */ sen.senderOne();
/* 169 */ sen = null;
/* */ }
/* */
/* */ }
/* 173 */ });
/* 174 */ JButton btnRestart03 = new JButton("Restart");
/* 175 */ btnRestart03.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 177 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 03 ?", "Confirmer", 0);
/* 178 */ if (reply == 0) {
/* 179 */ Send sen = new Send(Gui.IPADDR[2], "Restart");
/* 180 */ sen.senderOne();
/* 181 */ sen = null;
/* */ }
/* */
/* */ }
/* 185 */ });
/* 186 */ JButton btnShutdown03 = new JButton("Shutdown");
/* 187 */ btnShutdown03.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 189 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 03 ?", "Confirmer", 0);
/* 190 */ if (reply == 0) {
/* 191 */ Send sen = new Send(Gui.IPADDR[2], "ShutDown");
/* 192 */ sen.senderOne();
/* 193 */ sen = null;
/* */ }
/* */ }
/* 196 */ });
/* 197 */ GroupLayout gl_panel_3 = new GroupLayout(panel_3);
/* 198 */ gl_panel_3.setHorizontalGroup(
/* 199 */ gl_panel_3.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 200 */ .addGap(0, 359, 32767)
/* 201 */ .addGroup(gl_panel_3.createSequentialGroup()
/* 202 */ .addGap(65)
/* 203 */ .addComponent(btnStart03, -2, 70, -2)
/* 204 */ .addGap(12)
/* 205 */ .addComponent(btnRestart03)
/* 206 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 207 */ .addComponent(btnShutdown03)
/* 208 */ .addContainerGap(21, 32767)));
/* */
/* 210 */ gl_panel_3.setVerticalGroup(
/* 211 */ gl_panel_3.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 212 */ .addGap(0, 62, 32767)
/* 213 */ .addGroup(gl_panel_3.createSequentialGroup()
/* 214 */ .addGroup(gl_panel_3.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 215 */ .addComponent(btnShutdown03)
/* 216 */ .addComponent(btnStart03)
/* 217 */ .addComponent(btnRestart03))
/* 218 */ .addContainerGap(-1, 32767)));
/* */
/* 220 */ panel_3.setLayout(gl_panel_3);
/* */
/* 222 */ JPanel panel_4 = new JPanel();
/* 223 */ panel_4.setBorder(new TitledBorder(null, "Poste 04 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 225 */ JButton btnStart04 = new JButton("Start");
/* 226 */ btnStart04.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 228 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 04 ?", "Confirmer", 0);
/* 229 */ if (reply == 0) {
/* 230 */ Send sen = new Send(Gui.MACADDR[3], "WakeUp");
/* 231 */ sen.senderOne();
/* 232 */ sen = null;
/* */ }
/* */
/* */ }
/* 236 */ });
/* 237 */ JButton btnRestart04 = new JButton("Restart");
/* 238 */ btnRestart04.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 240 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 04 ?", "Confirmer", 0);
/* 241 */ if (reply == 0) {
/* 242 */ Send sen = new Send(Gui.IPADDR[3], "Restart");
/* 243 */ sen.senderOne();
/* 244 */ sen = null;
/* */ }
/* */
/* */ }
/* 248 */ });
/* 249 */ JButton btnShutdown04 = new JButton("Shutdown");
/* 250 */ btnShutdown04.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 252 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 04 ?", "Confirmer", 0);
/* 253 */ if (reply == 0) {
/* 254 */ Send sen = new Send(Gui.IPADDR[3], "ShutDown");
/* 255 */ sen.senderOne();
/* 256 */ sen = null;
/* */ }
/* */ }
/* 259 */ });
/* 260 */ GroupLayout gl_panel_4 = new GroupLayout(panel_4);
/* 261 */ gl_panel_4.setHorizontalGroup(
/* 262 */ gl_panel_4.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 263 */ .addGap(0, 359, 32767)
/* 264 */ .addGroup(gl_panel_4.createSequentialGroup()
/* 265 */ .addGap(65)
/* 266 */ .addComponent(btnStart04, -2, 70, -2)
/* 267 */ .addGap(12)
/* 268 */ .addComponent(btnRestart04)
/* 269 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 270 */ .addComponent(btnShutdown04)
/* 271 */ .addContainerGap(21, 32767)));
/* */
/* 273 */ gl_panel_4.setVerticalGroup(
/* 274 */ gl_panel_4.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 275 */ .addGap(0, 62, 32767)
/* 276 */ .addGroup(gl_panel_4.createSequentialGroup()
/* 277 */ .addGroup(gl_panel_4.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 278 */ .addComponent(btnShutdown04)
/* 279 */ .addComponent(btnStart04)
/* 280 */ .addComponent(btnRestart04))
/* 281 */ .addContainerGap(-1, 32767)));
/* */
/* 283 */ panel_4.setLayout(gl_panel_4);
/* */
/* 285 */ JPanel panel_5 = new JPanel();
/* 286 */ panel_5.setBorder(new TitledBorder(null, "Poste 05 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 288 */ JButton btnStart05 = new JButton("Start");
/* 289 */ btnStart05.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 291 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 05 ?", "Confirmer", 0);
/* 292 */ if (reply == 0) {
/* 293 */ Send sen = new Send(Gui.MACADDR[4], "WakeUp");
/* 294 */ sen.senderOne();
/* 295 */ sen = null;
/* */ }
/* */
/* */ }
/* 299 */ });
/* 300 */ JButton btnRestart05 = new JButton("Restart");
/* 301 */ btnRestart05.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 303 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 05 ?", "Confirmer", 0);
/* 304 */ if (reply == 0) {
/* 305 */ Send sen = new Send(Gui.IPADDR[4], "Restart");
/* 306 */ sen.senderOne();
/* 307 */ sen = null;
/* */ }
/* */
/* */ }
/* 311 */ });
/* 312 */ JButton btnShutdown05 = new JButton("Shutdown");
/* 313 */ btnShutdown05.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 315 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 05 ?", "Confirmer", 0);
/* 316 */ if (reply == 0) {
/* 317 */ Send sen = new Send(Gui.IPADDR[4], "ShutDown");
/* 318 */ sen.senderOne();
/* 319 */ sen = null;
/* */ }
/* */ }
/* 322 */ });
/* 323 */ GroupLayout gl_panel_5 = new GroupLayout(panel_5);
/* 324 */ gl_panel_5.setHorizontalGroup(
/* 325 */ gl_panel_5.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 326 */ .addGap(0, 359, 32767)
/* 327 */ .addGroup(gl_panel_5.createSequentialGroup()
/* 328 */ .addGap(65)
/* 329 */ .addComponent(btnStart05, -2, 70, -2)
/* 330 */ .addGap(12)
/* 331 */ .addComponent(btnRestart05)
/* 332 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 333 */ .addComponent(btnShutdown05)
/* 334 */ .addContainerGap(21, 32767)));
/* */
/* 336 */ gl_panel_5.setVerticalGroup(
/* 337 */ gl_panel_5.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 338 */ .addGap(0, 62, 32767)
/* 339 */ .addGroup(gl_panel_5.createSequentialGroup()
/* 340 */ .addGroup(gl_panel_5.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 341 */ .addComponent(btnShutdown05)
/* 342 */ .addComponent(btnStart05)
/* 343 */ .addComponent(btnRestart05))
/* 344 */ .addContainerGap(-1, 32767)));
/* */
/* 346 */ panel_5.setLayout(gl_panel_5);
/* */
/* 348 */ JPanel panel_6 = new JPanel();
/* 349 */ panel_6.setBorder(new TitledBorder(null, "Poste 06 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 351 */ JButton btnStart06 = new JButton("Start");
/* 352 */ btnStart06.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 354 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 06 ?", "Confirmer", 0);
/* 355 */ if (reply == 0) {
/* 356 */ Send sen = new Send(Gui.MACADDR[5], "WakeUp");
/* 357 */ sen.senderOne();
/* 358 */ sen = null;
/* */ }
/* */
/* */ }
/* 362 */ });
/* 363 */ JButton btnRestart06 = new JButton("Restart");
/* 364 */ btnRestart06.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 366 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 06 ?", "Confirmer", 0);
/* 367 */ if (reply == 0) {
/* 368 */ Send sen = new Send(Gui.IPADDR[5], "Restart");
/* 369 */ sen.senderOne();
/* 370 */ sen = null;
/* */ }
/* */
/* */ }
/* 374 */ });
/* 375 */ JButton btnShutdown06 = new JButton("Shutdown");
/* 376 */ btnShutdown06.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 378 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 06 ?", "Confirmer", 0);
/* 379 */ if (reply == 0) {
/* 380 */ Send sen = new Send(Gui.IPADDR[5], "ShutDown");
/* 381 */ sen.senderOne();
/* 382 */ sen = null;
/* */ }
/* */ }
/* 385 */ });
/* 386 */ GroupLayout gl_panel_6 = new GroupLayout(panel_6);
/* 387 */ gl_panel_6.setHorizontalGroup(
/* 388 */ gl_panel_6.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 389 */ .addGap(0, 359, 32767)
/* 390 */ .addGroup(gl_panel_6.createSequentialGroup()
/* 391 */ .addGap(65)
/* 392 */ .addComponent(btnStart06, -2, 70, -2)
/* 393 */ .addGap(12)
/* 394 */ .addComponent(btnRestart06)
/* 395 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 396 */ .addComponent(btnShutdown06)
/* 397 */ .addContainerGap(21, 32767)));
/* */
/* 399 */ gl_panel_6.setVerticalGroup(
/* 400 */ gl_panel_6.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 401 */ .addGap(0, 62, 32767)
/* 402 */ .addGroup(gl_panel_6.createSequentialGroup()
/* 403 */ .addGroup(gl_panel_6.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 404 */ .addComponent(btnShutdown06)
/* 405 */ .addComponent(btnStart06)
/* 406 */ .addComponent(btnRestart06))
/* 407 */ .addContainerGap(-1, 32767)));
/* */
/* 409 */ panel_6.setLayout(gl_panel_6);
/* */
/* 411 */ JPanel panel_7 = new JPanel();
/* 412 */ panel_7.setBorder(new TitledBorder(null, "Poste 07 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 414 */ JButton btnStart07 = new JButton("Start");
/* 415 */ btnStart07.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 417 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 07 ?", "Confirmer", 0);
/* 418 */ if (reply == 0) {
/* 419 */ Send sen = new Send(Gui.MACADDR[6], "WakeUp");
/* 420 */ sen.senderOne();
/* 421 */ sen = null;
/* */ }
/* */
/* */ }
/* 425 */ });
/* 426 */ JButton btnRestart07 = new JButton("Restart");
/* 427 */ btnRestart07.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 429 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 07 ?", "Confirmer", 0);
/* 430 */ if (reply == 0) {
/* 431 */ Send sen = new Send(Gui.IPADDR[6], "Restart");
/* 432 */ sen.senderOne();
/* 433 */ sen = null;
/* */ }
/* */
/* */ }
/* 437 */ });
/* 438 */ JButton btnShutdown07 = new JButton("Shutdown");
/* 439 */ btnShutdown07.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 441 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 07 ?", "Confirmer", 0);
/* 442 */ if (reply == 0) {
/* 443 */ Send sen = new Send(Gui.IPADDR[6], "ShutDown");
/* 444 */ sen.senderOne();
/* 445 */ sen = null;
/* */ }
/* */ }
/* 448 */ });
/* 449 */ GroupLayout gl_panel_7 = new GroupLayout(panel_7);
/* 450 */ gl_panel_7.setHorizontalGroup(
/* 451 */ gl_panel_7.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 452 */ .addGap(0, 359, 32767)
/* 453 */ .addGroup(gl_panel_7.createSequentialGroup()
/* 454 */ .addGap(65)
/* 455 */ .addComponent(btnStart07, -2, 70, -2)
/* 456 */ .addGap(12)
/* 457 */ .addComponent(btnRestart07)
/* 458 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 459 */ .addComponent(btnShutdown07)
/* 460 */ .addContainerGap(21, 32767)));
/* */
/* 462 */ gl_panel_7.setVerticalGroup(
/* 463 */ gl_panel_7.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 464 */ .addGap(0, 62, 32767)
/* 465 */ .addGroup(gl_panel_7.createSequentialGroup()
/* 466 */ .addGroup(gl_panel_7.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 467 */ .addComponent(btnShutdown07)
/* 468 */ .addComponent(btnStart07)
/* 469 */ .addComponent(btnRestart07))
/* 470 */ .addContainerGap(-1, 32767)));
/* */
/* 472 */ panel_7.setLayout(gl_panel_7);
/* */
/* 474 */ JPanel panel_8 = new JPanel();
/* 475 */ panel_8.setBorder(new TitledBorder(null, "Poste 08 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 477 */ JButton btnStart08 = new JButton("Start");
/* 478 */ btnStart08.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 480 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 08 ?", "Confirmer", 0);
/* 481 */ if (reply == 0) {
/* 482 */ Send sen = new Send(Gui.MACADDR[7], "WakeUp");
/* 483 */ sen.senderOne();
/* 484 */ sen = null;
/* */ }
/* */
/* */ }
/* 488 */ });
/* 489 */ JButton btnRestart08 = new JButton("Restart");
/* 490 */ btnRestart08.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 492 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 08 ?", "Confirmer", 0);
/* 493 */ if (reply == 0) {
/* 494 */ Send sen = new Send(Gui.IPADDR[7], "Restart");
/* 495 */ sen.senderOne();
/* 496 */ sen = null;
/* */ }
/* */
/* */ }
/* 500 */ });
/* 501 */ JButton btnShutdown08 = new JButton("Shutdown");
/* 502 */ btnShutdown08.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 504 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 08 ?", "Confirmer", 0);
/* 505 */ if (reply == 0) {
/* 506 */ Send sen = new Send(Gui.IPADDR[7], "ShutDown");
/* 507 */ sen.senderOne();
/* 508 */ sen = null;
/* */ }
/* */ }
/* 511 */ });
/* 512 */ GroupLayout gl_panel_8 = new GroupLayout(panel_8);
/* 513 */ gl_panel_8.setHorizontalGroup(
/* 514 */ gl_panel_8.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 515 */ .addGap(0, 359, 32767)
/* 516 */ .addGroup(gl_panel_8.createSequentialGroup()
/* 517 */ .addGap(65)
/* 518 */ .addComponent(btnStart08, -2, 70, -2)
/* 519 */ .addGap(12)
/* 520 */ .addComponent(btnRestart08)
/* 521 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 522 */ .addComponent(btnShutdown08)
/* 523 */ .addContainerGap(21, 32767)));
/* */
/* 525 */ gl_panel_8.setVerticalGroup(
/* 526 */ gl_panel_8.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 527 */ .addGap(0, 62, 32767)
/* 528 */ .addGroup(gl_panel_8.createSequentialGroup()
/* 529 */ .addGroup(gl_panel_8.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 530 */ .addComponent(btnShutdown08)
/* 531 */ .addComponent(btnStart08)
/* 532 */ .addComponent(btnRestart08))
/* 533 */ .addContainerGap(-1, 32767)));
/* */
/* 535 */ panel_8.setLayout(gl_panel_8);
/* */
/* 537 */ JPanel panel_9 = new JPanel();
/* 538 */ panel_9.setBorder(new TitledBorder(null, "Poste 09 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 540 */ JButton btnStart09 = new JButton("Start");
/* 541 */ btnStart09.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 543 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 09 ?", "Confirmer", 0);
/* 544 */ if (reply == 0) {
/* 545 */ Send sen = new Send(Gui.MACADDR[8], "WakeUp");
/* 546 */ sen.senderOne();
/* 547 */ sen = null;
/* */ }
/* */
/* */ }
/* 551 */ });
/* 552 */ JButton btnRestart09 = new JButton("Restart");
/* 553 */ btnRestart09.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 555 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 09 ?", "Confirmer", 0);
/* 556 */ if (reply == 0) {
/* 557 */ Send sen = new Send(Gui.IPADDR[8], "Restart");
/* 558 */ sen.senderOne();
/* 559 */ sen = null;
/* */ }
/* */
/* */ }
/* 563 */ });
/* 564 */ JButton btnShutdown09 = new JButton("Shutdown");
/* 565 */ btnShutdown09.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 567 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 09 ?", "Confirmer", 0);
/* 568 */ if (reply == 0) {
/* 569 */ Send sen = new Send(Gui.IPADDR[8], "ShutDown");
/* 570 */ sen.senderOne();
/* 571 */ sen = null;
/* */ }
/* */ }
/* 574 */ });
/* 575 */ GroupLayout gl_panel_9 = new GroupLayout(panel_9);
/* 576 */ gl_panel_9.setHorizontalGroup(
/* 577 */ gl_panel_9.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 578 */ .addGap(0, 359, 32767)
/* 579 */ .addGroup(gl_panel_9.createSequentialGroup()
/* 580 */ .addGap(65)
/* 581 */ .addComponent(btnStart09, -2, 70, -2)
/* 582 */ .addGap(12)
/* 583 */ .addComponent(btnRestart09)
/* 584 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 585 */ .addComponent(btnShutdown09)
/* 586 */ .addContainerGap(21, 32767)));
/* */
/* 588 */ gl_panel_9.setVerticalGroup(
/* 589 */ gl_panel_9.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 590 */ .addGap(0, 62, 32767)
/* 591 */ .addGroup(gl_panel_9.createSequentialGroup()
/* 592 */ .addGroup(gl_panel_9.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 593 */ .addComponent(btnShutdown09)
/* 594 */ .addComponent(btnStart09)
/* 595 */ .addComponent(btnRestart09))
/* 596 */ .addContainerGap(-1, 32767)));
/* */
/* 598 */ panel_9.setLayout(gl_panel_9);
/* */
/* 600 */ JPanel panel_10 = new JPanel();
/* 601 */ panel_10.setBorder(new TitledBorder(null, "Poste 10 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 603 */ JButton btnStart10 = new JButton("Start");
/* 604 */ btnStart10.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 606 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 10 ?", "Confirmer", 0);
/* 607 */ if (reply == 0) {
/* 608 */ Send sen = new Send(Gui.MACADDR[9], "WakeUp");
/* 609 */ sen.senderOne();
/* 610 */ sen = null;
/* */ }
/* */
/* */ }
/* 614 */ });
/* 615 */ JButton btnRestart10 = new JButton("Restart");
/* 616 */ btnRestart10.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 618 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 10 ?", "Confirmer", 0);
/* 619 */ if (reply == 0) {
/* 620 */ Send sen = new Send(Gui.IPADDR[9], "Restart");
/* 621 */ sen.senderOne();
/* 622 */ sen = null;
/* */ }
/* */
/* */ }
/* 626 */ });
/* 627 */ JButton btnShutdown10 = new JButton("Shutdown");
/* 628 */ btnShutdown10.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 630 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 10 ?", "Confirmer", 0);
/* 631 */ if (reply == 0) {
/* 632 */ Send sen = new Send(Gui.IPADDR[9], "ShutDown");
/* 633 */ sen.senderOne();
/* 634 */ sen = null;
/* */ }
/* */ }
/* 637 */ });
/* 638 */ GroupLayout gl_panel_10 = new GroupLayout(panel_10);
/* 639 */ gl_panel_10.setHorizontalGroup(
/* 640 */ gl_panel_10.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 641 */ .addGap(0, 359, 32767)
/* 642 */ .addGroup(gl_panel_10.createSequentialGroup()
/* 643 */ .addGap(65)
/* 644 */ .addComponent(btnStart10, -2, 70, -2)
/* 645 */ .addGap(12)
/* 646 */ .addComponent(btnRestart10)
/* 647 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 648 */ .addComponent(btnShutdown10)
/* 649 */ .addContainerGap(21, 32767)));
/* */
/* 651 */ gl_panel_10.setVerticalGroup(
/* 652 */ gl_panel_10.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 653 */ .addGap(0, 62, 32767)
/* 654 */ .addGroup(gl_panel_10.createSequentialGroup()
/* 655 */ .addGroup(gl_panel_10.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 656 */ .addComponent(btnShutdown10)
/* 657 */ .addComponent(btnStart10)
/* 658 */ .addComponent(btnRestart10))
/* 659 */ .addContainerGap(-1, 32767)));
/* */
/* 661 */ panel_10.setLayout(gl_panel_10);
/* */
/* 663 */ JPanel panel_11 = new JPanel();
/* 664 */ panel_11.setBorder(new TitledBorder(null, "Poste 11 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 666 */ JButton btnStart11 = new JButton("Start");
/* 667 */ btnStart11.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 669 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 11 ?", "Confirmer", 0);
/* 670 */ if (reply == 0) {
/* 671 */ Send sen = new Send(Gui.MACADDR[10], "WakeUp");
/* 672 */ sen.senderOne();
/* 673 */ sen = null;
/* */ }
/* */
/* */ }
/* 677 */ });
/* 678 */ JButton btnRestart11 = new JButton("Restart");
/* 679 */ btnRestart11.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 681 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 11 ?", "Confirmer", 0);
/* 682 */ if (reply == 0) {
/* 683 */ Send sen = new Send(Gui.IPADDR[10], "Restart");
/* 684 */ sen.senderOne();
/* 685 */ sen = null;
/* */ }
/* */
/* */ }
/* 689 */ });
/* 690 */ JButton btnShutdown11 = new JButton("Shutdown");
/* 691 */ btnShutdown11.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 693 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 11 ?", "Confirmer", 0);
/* 694 */ if (reply == 0) {
/* 695 */ Send sen = new Send(Gui.IPADDR[10], "ShutDown");
sen.senderOne();
/* 697 */ sen = null;
/* 696 */
/* */ }
/* */ }
/* 700 */ });
/* 701 */ GroupLayout gl_panel_11 = new GroupLayout(panel_11);
/* 702 */ gl_panel_11.setHorizontalGroup(
/* 703 */ gl_panel_11.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 704 */ .addGap(0, 359, 32767)
/* 705 */ .addGroup(gl_panel_11.createSequentialGroup()
/* 706 */ .addGap(65)
/* 707 */ .addComponent(btnStart11, -2, 70, -2)
/* 708 */ .addGap(12)
/* 709 */ .addComponent(btnRestart11)
/* 710 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 711 */ .addComponent(btnShutdown11)
/* 712 */ .addContainerGap(21, 32767)));
/* */
/* 714 */ gl_panel_11.setVerticalGroup(
/* 715 */ gl_panel_11.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 716 */ .addGap(0, 62, 32767)
/* 717 */ .addGroup(gl_panel_11.createSequentialGroup()
/* 718 */ .addGroup(gl_panel_11.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 719 */ .addComponent(btnShutdown11)
/* 720 */ .addComponent(btnStart11)
/* 721 */ .addComponent(btnRestart11))
/* 722 */ .addContainerGap(-1, 32767)));
/* */
/* 724 */ panel_11.setLayout(gl_panel_11);
/* */
/* 726 */ JPanel panel_12 = new JPanel();
/* 727 */ panel_12.setBorder(new TitledBorder(null, "Poste 12 : ", 4, 2, null, new Color(0, 0, 0)));
/* */
/* 729 */ JButton btnStart12 = new JButton("Start");
/* 730 */ btnStart12.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 732 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 12 ?", "Confirmer", 0);
/* 733 */ if (reply == 0) {
/* 734 */ Send sen = new Send(Gui.MACADDR[11], "WakeUp");
/* 735 */ sen.senderOne();
/* 736 */ sen = null;
/* */ }
/* */
/* */ }
/* 740 */ });
/* 741 */ JButton btnRestart12 = new JButton("Restart");
/* 742 */ btnRestart12.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 744 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 12 ?", "Confirmer", 0);
/* 745 */ if (reply == 0) {
/* 746 */ Send sen = new Send(Gui.IPADDR[11], "Restart");
/* 747 */ sen.senderOne();
/* 748 */ sen = null;
/* */ }
/* */
/* */ }
/* 752 */ });
/* 753 */ JButton btnShutdown12 = new JButton("Shutdown");
/* 754 */ btnShutdown12.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 756 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 12 ?", "Confirmer", 0);
/* 757 */ if (reply == 0) {
/* 758 */ Send sen = new Send(Gui.IPADDR[11], "ShutDown");


/* 759 */ sen.senderOne();
/* 760 */ sen = null;
/* */ }
/* */ }
/* 763 */ });

/* 764 */ GroupLayout gl_panel_12 = new GroupLayout(panel_12);
/* 765 */ gl_panel_12.setHorizontalGroup(
/* 766 */ gl_panel_12.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 767 */ .addGap(0, 359, 32767)
/* 768 */ .addGroup(gl_panel_12.createSequentialGroup()
/* 769 */ .addGap(65)
/* 770 */ .addComponent(btnStart12, -2, 70, -2)
/* 771 */ .addGap(12)
/* 772 */ .addComponent(btnRestart12)
/* 773 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 774 */ .addComponent(btnShutdown12)
/* 775 */ .addContainerGap(21, 32767)));
/* */
/* 777 */ gl_panel_12.setVerticalGroup(
/* 778 */ gl_panel_12.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 779 */ .addGap(0, 62, 32767)
/* 780 */ .addGroup(gl_panel_12.createSequentialGroup()
/* 781 */ .addGroup(gl_panel_12.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 782 */ .addComponent(btnShutdown12)
/* 783 */ .addComponent(btnStart12)
/* 784 */ .addComponent(btnRestart12))
/* 785 */ .addContainerGap(-1, 32767)));
/* */
/* 787 */ panel_12.setLayout(gl_panel_12);
/* 788 */ GroupLayout gl_contentPane = new GroupLayout(this.contentPane);
/* 789 */ gl_contentPane.setHorizontalGroup(
/* 790 */ gl_contentPane.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 791 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 792 */ .addContainerGap()
/* 793 */ .addGroup(gl_contentPane.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 794 */ .addComponent(panel, -1, -1, 32767)
/* 795 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 796 */ .addComponent(panel_1, -2, 359, -2)
/* 797 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 798 */ .addComponent(panel_7, -2, 359, -2))
/* 799 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 800 */ .addComponent(panel_2, -2, 359, -2)
/* 801 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 802 */ .addComponent(panel_8, -2, 359, -2))
/* 803 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 804 */ .addComponent(panel_3, -2, 359, -2)
/* 805 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 806 */ .addComponent(panel_9, -2, 359, -2))
/* 807 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 808 */ .addComponent(panel_4, -2, 359, -2)
/* 809 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 810 */ .addComponent(panel_10, -2, 359, -2))
/* 811 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 812 */ .addComponent(panel_5, -2, 359, -2)
/* 813 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 814 */ .addComponent(panel_11, -2, 359, -2))
/* 815 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 816 */ .addComponent(panel_6, -2, 359, -2)
/* 817 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 44, 32767)
/* 818 */ .addComponent(panel_12, -2, 359, -2)))
/* 819 */ .addContainerGap()));
/* */
/* 821 */ gl_contentPane.setVerticalGroup(
/* 822 */ gl_contentPane.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 823 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 824 */ .addGap(22)
/* 825 */ .addComponent(panel, -2, 62, -2)
/* 826 */ .addGap(18)
/* 827 */ .addGroup(gl_contentPane.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 828 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 829 */ .addComponent(panel_1, -2, 62, -2)
/* 830 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 831 */ .addComponent(panel_2, -2, 62, -2)
/* 832 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 833 */ .addComponent(panel_3, -2, 62, -2)
/* 834 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 835 */ .addComponent(panel_4, -2, 62, -2)
/* 836 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 837 */ .addComponent(panel_5, -2, 62, -2)
/* 838 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 839 */ .addComponent(panel_6, -2, 62, -2))
/* 840 */ .addGroup(gl_contentPane.createSequentialGroup()
/* 841 */ .addComponent(panel_7, -2, 62, -2)
/* 842 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 843 */ .addComponent(panel_8, -2, 62, -2)
/* 844 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 845 */ .addComponent(panel_9, -2, 62, -2)
/* 846 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 847 */ .addComponent(panel_10, -2, 62, -2)
/* 848 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 849 */ .addComponent(panel_11, -2, 62, -2)
/* 850 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 851 */ .addComponent(panel_12, -2, 62, -2)))
/* 852 */ .addContainerGap(48, 32767)));
/* */
/* */
/* 855 */ JButton btnStart01 = new JButton("Start");
/* 856 */ btnStart01.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent arg0) {
/* 858 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer poste 01 ?", "Confirmer", 0);
/* 859 */ if (reply == 0) {
/* 860 */ Send sen = new Send(Gui.MACADDR[0], "WakeUp");
/* 861 */ sen.senderOne();
/* 862 */ sen = null;
/* */ }
/* */
/* */ }
/* 866 */ });
/* 867 */ JButton btnRestart01 = new JButton("Restart");
/* 868 */ btnRestart01.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 870 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer poste 01 ?", "Confirmer", 0);
/* 871 */ if (reply == 0) {
/* 872 */ Send sen = new Send(Gui.IPADDR[0], "Restart");
/* 873 */ sen.senderOne();
/* 874 */ sen = null;
/* */ }
/* */
/* */ }
/* 878 */ });
/* 879 */ JButton btnShutdown01 = new JButton("Shutdown");
/* 880 */ btnShutdown01.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 882 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre poste 01 ?", "Confirmer", 0);
/* 883 */ if (reply == 0) {
/* 884 */ Send sen = new Send(Gui.IPADDR[0], "ShutDown");
/* 885 */ sen.senderOne();
/* 886 */ sen = null;
/* */ }
/* */ }
/* 889 */ });
/* 890 */ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
/* 891 */ gl_panel_1.setHorizontalGroup(
/* 892 */ gl_panel_1.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 893 */ .addGroup(gl_panel_1.createSequentialGroup()
/* 894 */ .addGap(65)
/* 895 */ .addComponent(btnStart01, -2, 70, -2)
/* 896 */ .addGap(12)
/* 897 */ .addComponent(btnRestart01)
/* 898 */ .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
/* 899 */ .addComponent(btnShutdown01)
/* 900 */ .addContainerGap(21, 32767)));
/* */
/* 902 */ gl_panel_1.setVerticalGroup(
/* 903 */ gl_panel_1.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 904 */ .addGroup(gl_panel_1.createSequentialGroup()
/* 905 */ .addGroup(gl_panel_1.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 906 */ .addComponent(btnShutdown01)
/* 907 */ .addComponent(btnStart01)
/* 908 */ .addComponent(btnRestart01))
/* 909 */ .addContainerGap(-1, 32767)));
/* */
/* 911 */ panel_1.setLayout(gl_panel_1);
/* */
/* 913 */ JButton btnStartAll = new JButton("Start All");
/* 914 */ btnStartAll.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent arg0) {
/* 916 */ int reply = JOptionPane.showConfirmDialog(null, "Démarrer l'ensemble des postes ?", "Confirmer", 0);
/* 917 */ if (reply == 0) {
/* 918 */ Send sen = new Send(Gui.MACADDR, "WakeUp");
/* 919 */ sen.senderAll();
/* 920 */ sen = null;
/* */ }
/* */
/* */ }
/* 924 */ });
/* 925 */ JButton btnRestartAll = new JButton("Restart All");
/* 926 */ btnRestartAll.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 928 */ int reply = JOptionPane.showConfirmDialog(null, "Rédemarrer l'ensemble des postes?", "Confirmer", 0);
/* 929 */ if (reply == 0) {
/* 930 */ Send sen = new Send(Gui.IPADDR, "Restart");
/* 931 */ sen.senderAll();
/* 932 */ sen = null;
/* */ }
/* */
/* */ }
/* 936 */ });
/* 937 */ JButton btnShutdownAll = new JButton("Shutdown All");
/* 938 */ btnShutdownAll.addActionListener(new ActionListener() {
/* */ public void actionPerformed(ActionEvent e) {
/* 940 */ int reply = JOptionPane.showConfirmDialog(null, "Eteindre l'ensemble des postes ?", "Confirmer", 0);
/* 941 */ if (reply == 0) {
/* 942 */ Send sen = new Send(Gui.IPADDR, "ShutDown");
/* 943 */ sen.senderAll();
/* 944 */ sen = null;
/* */ }
/* */ }
/* 947 */ });
/* 948 */ GroupLayout gl_panel = new GroupLayout(panel);
/* 949 */ gl_panel.setHorizontalGroup(
/* 950 */ gl_panel.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 951 */ .addGroup(gl_panel.createSequentialGroup()
/* 952 */ .addGap(307)
/* 953 */ .addComponent(btnStartAll, -2, 126, -2)
/* 954 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 955 */ .addComponent(btnRestartAll, -2, 126, -2)
/* 956 */ .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
/* 957 */ .addComponent(btnShutdownAll, -2, 126, -2)
/* 958 */ .addContainerGap(47, 32767)));
/* */
/* 960 */ gl_panel.setVerticalGroup(
/* 961 */ gl_panel.createParallelGroup(GroupLayout.Alignment.LEADING)
/* 962 */ .addGroup(gl_panel.createSequentialGroup()
/* 963 */ .addGroup(gl_panel.createParallelGroup(GroupLayout.Alignment.BASELINE)
/* 964 */ .addComponent(btnStartAll)
/* 965 */ .addComponent(btnRestartAll)
/* 966 */ .addComponent(btnShutdownAll))
/* 967 */ .addContainerGap(-1, 32767)));
/* */
/* 969 */ panel.setLayout(gl_panel);
/* 970 */ this.contentPane.setLayout(gl_contentPane);
/* */ }
/* */ }


/* Location: D:\java\NetManager.jar!\GUI\Gui.class
  • Java compiler version: 8 (52.0)
  • JD-Core Version: 0.7.1
  • /
0
Rejoignez-nous