diff --git a/analyseWriter.exe b/analyseWriter.exe index 7923035..ee86277 100644 Binary files a/analyseWriter.exe and b/analyseWriter.exe differ diff --git a/analyseWriter.jar b/analyseWriter.jar index 88d574e..02b2ca7 100644 Binary files a/analyseWriter.jar and b/analyseWriter.jar differ diff --git a/bin/app/create$1.class b/bin/app/create$1.class index 08b0d9c..f2acfe3 100644 Binary files a/bin/app/create$1.class and b/bin/app/create$1.class differ diff --git a/bin/app/create$10.class b/bin/app/create$10.class index 85ba561..1d4125d 100644 Binary files a/bin/app/create$10.class and b/bin/app/create$10.class differ diff --git a/bin/app/create$11.class b/bin/app/create$11.class index a46a446..2241a6d 100644 Binary files a/bin/app/create$11.class and b/bin/app/create$11.class differ diff --git a/bin/app/create$12.class b/bin/app/create$12.class index 5cc8656..75b8651 100644 Binary files a/bin/app/create$12.class and b/bin/app/create$12.class differ diff --git a/bin/app/create$13.class b/bin/app/create$13.class index f33c9be..b7ec1f0 100644 Binary files a/bin/app/create$13.class and b/bin/app/create$13.class differ diff --git a/bin/app/create$14.class b/bin/app/create$14.class index 924e2d2..80f5d80 100644 Binary files a/bin/app/create$14.class and b/bin/app/create$14.class differ diff --git a/bin/app/create$15.class b/bin/app/create$15.class index 7c24931..c7b35a3 100644 Binary files a/bin/app/create$15.class and b/bin/app/create$15.class differ diff --git a/bin/app/create$16.class b/bin/app/create$16.class index a2fcefd..091a191 100644 Binary files a/bin/app/create$16.class and b/bin/app/create$16.class differ diff --git a/bin/app/create$17.class b/bin/app/create$17.class index 1cb7450..08ddbb3 100644 Binary files a/bin/app/create$17.class and b/bin/app/create$17.class differ diff --git a/bin/app/create$18.class b/bin/app/create$18.class index 0d021ae..356f060 100644 Binary files a/bin/app/create$18.class and b/bin/app/create$18.class differ diff --git a/bin/app/create$19.class b/bin/app/create$19.class index d37de15..9aec8de 100644 Binary files a/bin/app/create$19.class and b/bin/app/create$19.class differ diff --git a/bin/app/create$2.class b/bin/app/create$2.class index 5266315..30c3180 100644 Binary files a/bin/app/create$2.class and b/bin/app/create$2.class differ diff --git a/bin/app/create$20.class b/bin/app/create$20.class index e89d6aa..030b11f 100644 Binary files a/bin/app/create$20.class and b/bin/app/create$20.class differ diff --git a/bin/app/create$21.class b/bin/app/create$21.class index b3cee8e..67f0c43 100644 Binary files a/bin/app/create$21.class and b/bin/app/create$21.class differ diff --git a/bin/app/create$22.class b/bin/app/create$22.class index 717fb61..b040b7d 100644 Binary files a/bin/app/create$22.class and b/bin/app/create$22.class differ diff --git a/bin/app/create$23.class b/bin/app/create$23.class index dd2504f..aea9b0a 100644 Binary files a/bin/app/create$23.class and b/bin/app/create$23.class differ diff --git a/bin/app/create$24.class b/bin/app/create$24.class index f7712cb..897fcdc 100644 Binary files a/bin/app/create$24.class and b/bin/app/create$24.class differ diff --git a/bin/app/create$25.class b/bin/app/create$25.class index 1e38454..ca87134 100644 Binary files a/bin/app/create$25.class and b/bin/app/create$25.class differ diff --git a/bin/app/create$26.class b/bin/app/create$26.class index fd94fa8..601cb3a 100644 Binary files a/bin/app/create$26.class and b/bin/app/create$26.class differ diff --git a/bin/app/create$27.class b/bin/app/create$27.class index 7426203..c4ffbb2 100644 Binary files a/bin/app/create$27.class and b/bin/app/create$27.class differ diff --git a/bin/app/create$28.class b/bin/app/create$28.class index 9ecd3cd..7c15228 100644 Binary files a/bin/app/create$28.class and b/bin/app/create$28.class differ diff --git a/bin/app/create$29.class b/bin/app/create$29.class index 1f21cea..9a32d85 100644 Binary files a/bin/app/create$29.class and b/bin/app/create$29.class differ diff --git a/bin/app/create$3.class b/bin/app/create$3.class index b6ef263..e94fcad 100644 Binary files a/bin/app/create$3.class and b/bin/app/create$3.class differ diff --git a/bin/app/create$30.class b/bin/app/create$30.class index 89e4264..210c9a0 100644 Binary files a/bin/app/create$30.class and b/bin/app/create$30.class differ diff --git a/bin/app/create$31.class b/bin/app/create$31.class index 7ae6a7e..dadb34d 100644 Binary files a/bin/app/create$31.class and b/bin/app/create$31.class differ diff --git a/bin/app/create$32.class b/bin/app/create$32.class index 99e1204..8be1202 100644 Binary files a/bin/app/create$32.class and b/bin/app/create$32.class differ diff --git a/bin/app/create$33.class b/bin/app/create$33.class index 17490ef..8db55b9 100644 Binary files a/bin/app/create$33.class and b/bin/app/create$33.class differ diff --git a/bin/app/create$34.class b/bin/app/create$34.class index f94b32c..5ba7362 100644 Binary files a/bin/app/create$34.class and b/bin/app/create$34.class differ diff --git a/bin/app/create$35.class b/bin/app/create$35.class index f4dc133..0f9fbf8 100644 Binary files a/bin/app/create$35.class and b/bin/app/create$35.class differ diff --git a/bin/app/create$36.class b/bin/app/create$36.class index b3c9449..cabf430 100644 Binary files a/bin/app/create$36.class and b/bin/app/create$36.class differ diff --git a/bin/app/create$37.class b/bin/app/create$37.class index 5152125..9d4ad14 100644 Binary files a/bin/app/create$37.class and b/bin/app/create$37.class differ diff --git a/bin/app/create$38.class b/bin/app/create$38.class index 9f5f952..819a43d 100644 Binary files a/bin/app/create$38.class and b/bin/app/create$38.class differ diff --git a/bin/app/create$39.class b/bin/app/create$39.class index 8b6e9b9..eae6fda 100644 Binary files a/bin/app/create$39.class and b/bin/app/create$39.class differ diff --git a/bin/app/create$4.class b/bin/app/create$4.class index a343bc2..655b62c 100644 Binary files a/bin/app/create$4.class and b/bin/app/create$4.class differ diff --git a/bin/app/create$40.class b/bin/app/create$40.class index ce08a70..3dfaeaf 100644 Binary files a/bin/app/create$40.class and b/bin/app/create$40.class differ diff --git a/bin/app/create$41.class b/bin/app/create$41.class index c6b1c8b..1c0cc70 100644 Binary files a/bin/app/create$41.class and b/bin/app/create$41.class differ diff --git a/bin/app/create$42.class b/bin/app/create$42.class index be365f8..8d42cfc 100644 Binary files a/bin/app/create$42.class and b/bin/app/create$42.class differ diff --git a/bin/app/create$43.class b/bin/app/create$43.class index 2661103..031fa8b 100644 Binary files a/bin/app/create$43.class and b/bin/app/create$43.class differ diff --git a/bin/app/create$44.class b/bin/app/create$44.class index 63da3c0..a4bdb6e 100644 Binary files a/bin/app/create$44.class and b/bin/app/create$44.class differ diff --git a/bin/app/create$45.class b/bin/app/create$45.class index ed7f6de..54b320d 100644 Binary files a/bin/app/create$45.class and b/bin/app/create$45.class differ diff --git a/bin/app/create$46.class b/bin/app/create$46.class index bb7114b..10aac9f 100644 Binary files a/bin/app/create$46.class and b/bin/app/create$46.class differ diff --git a/bin/app/create$47.class b/bin/app/create$47.class index 201bf9d..ddebc09 100644 Binary files a/bin/app/create$47.class and b/bin/app/create$47.class differ diff --git a/bin/app/create$48.class b/bin/app/create$48.class index eebb0d3..81abe31 100644 Binary files a/bin/app/create$48.class and b/bin/app/create$48.class differ diff --git a/bin/app/create$49.class b/bin/app/create$49.class index 453a16b..3581842 100644 Binary files a/bin/app/create$49.class and b/bin/app/create$49.class differ diff --git a/bin/app/create$5.class b/bin/app/create$5.class index 4c5e0a4..ef9bd27 100644 Binary files a/bin/app/create$5.class and b/bin/app/create$5.class differ diff --git a/bin/app/create$50.class b/bin/app/create$50.class index d20d413..d2e0485 100644 Binary files a/bin/app/create$50.class and b/bin/app/create$50.class differ diff --git a/bin/app/create$51.class b/bin/app/create$51.class index 425fecc..963cb01 100644 Binary files a/bin/app/create$51.class and b/bin/app/create$51.class differ diff --git a/bin/app/create$52.class b/bin/app/create$52.class index 53b0a52..682a151 100644 Binary files a/bin/app/create$52.class and b/bin/app/create$52.class differ diff --git a/bin/app/create$53.class b/bin/app/create$53.class index 14b4b1a..98d08ac 100644 Binary files a/bin/app/create$53.class and b/bin/app/create$53.class differ diff --git a/bin/app/create$54.class b/bin/app/create$54.class index ac6c94b..6663df2 100644 Binary files a/bin/app/create$54.class and b/bin/app/create$54.class differ diff --git a/bin/app/create$55.class b/bin/app/create$55.class index 9b4316f..edb534d 100644 Binary files a/bin/app/create$55.class and b/bin/app/create$55.class differ diff --git a/bin/app/create$56.class b/bin/app/create$56.class index f507292..7bfd8dc 100644 Binary files a/bin/app/create$56.class and b/bin/app/create$56.class differ diff --git a/bin/app/create$57.class b/bin/app/create$57.class index acc18c2..a0234a0 100644 Binary files a/bin/app/create$57.class and b/bin/app/create$57.class differ diff --git a/bin/app/create$58.class b/bin/app/create$58.class index b0639eb..15bac35 100644 Binary files a/bin/app/create$58.class and b/bin/app/create$58.class differ diff --git a/bin/app/create$59.class b/bin/app/create$59.class index cadbec6..d067650 100644 Binary files a/bin/app/create$59.class and b/bin/app/create$59.class differ diff --git a/bin/app/create$6.class b/bin/app/create$6.class index 0657338..c92077f 100644 Binary files a/bin/app/create$6.class and b/bin/app/create$6.class differ diff --git a/bin/app/create$7.class b/bin/app/create$7.class index 79488f4..39a0d8b 100644 Binary files a/bin/app/create$7.class and b/bin/app/create$7.class differ diff --git a/bin/app/create$8.class b/bin/app/create$8.class index 794f875..61dd15a 100644 Binary files a/bin/app/create$8.class and b/bin/app/create$8.class differ diff --git a/bin/app/create$9.class b/bin/app/create$9.class index 9f552ec..0c0d055 100644 Binary files a/bin/app/create$9.class and b/bin/app/create$9.class differ diff --git a/bin/app/create.class b/bin/app/create.class index b221e59..a8d4da8 100644 Binary files a/bin/app/create.class and b/bin/app/create.class differ diff --git a/bin/app/evaluate$1.class b/bin/app/evaluate$1.class index e1f2d87..b6e96a5 100644 Binary files a/bin/app/evaluate$1.class and b/bin/app/evaluate$1.class differ diff --git a/bin/app/evaluate$10.class b/bin/app/evaluate$10.class index 97b8554..583708c 100644 Binary files a/bin/app/evaluate$10.class and b/bin/app/evaluate$10.class differ diff --git a/bin/app/evaluate$11.class b/bin/app/evaluate$11.class index 881c7d1..d11c2ad 100644 Binary files a/bin/app/evaluate$11.class and b/bin/app/evaluate$11.class differ diff --git a/bin/app/evaluate$12.class b/bin/app/evaluate$12.class index 0f99ab5..bf9c38f 100644 Binary files a/bin/app/evaluate$12.class and b/bin/app/evaluate$12.class differ diff --git a/bin/app/evaluate$13.class b/bin/app/evaluate$13.class index 80a5cf6..48f9d75 100644 Binary files a/bin/app/evaluate$13.class and b/bin/app/evaluate$13.class differ diff --git a/bin/app/evaluate$14.class b/bin/app/evaluate$14.class index 65b039f..ea201a8 100644 Binary files a/bin/app/evaluate$14.class and b/bin/app/evaluate$14.class differ diff --git a/bin/app/evaluate$15.class b/bin/app/evaluate$15.class index 34ebbf4..09e5c53 100644 Binary files a/bin/app/evaluate$15.class and b/bin/app/evaluate$15.class differ diff --git a/bin/app/evaluate$16.class b/bin/app/evaluate$16.class index d74ea9b..59476b5 100644 Binary files a/bin/app/evaluate$16.class and b/bin/app/evaluate$16.class differ diff --git a/bin/app/evaluate$17.class b/bin/app/evaluate$17.class index 71337c9..e3e6515 100644 Binary files a/bin/app/evaluate$17.class and b/bin/app/evaluate$17.class differ diff --git a/bin/app/evaluate$2.class b/bin/app/evaluate$2.class index ccd8b3d..d5ff64c 100644 Binary files a/bin/app/evaluate$2.class and b/bin/app/evaluate$2.class differ diff --git a/bin/app/evaluate$3.class b/bin/app/evaluate$3.class index 500858d..7a7b500 100644 Binary files a/bin/app/evaluate$3.class and b/bin/app/evaluate$3.class differ diff --git a/bin/app/evaluate$4.class b/bin/app/evaluate$4.class index 5b00f96..14949d3 100644 Binary files a/bin/app/evaluate$4.class and b/bin/app/evaluate$4.class differ diff --git a/bin/app/evaluate$5.class b/bin/app/evaluate$5.class index 87d6d72..0267cb9 100644 Binary files a/bin/app/evaluate$5.class and b/bin/app/evaluate$5.class differ diff --git a/bin/app/evaluate$6.class b/bin/app/evaluate$6.class index b05f772..66cc716 100644 Binary files a/bin/app/evaluate$6.class and b/bin/app/evaluate$6.class differ diff --git a/bin/app/evaluate$7.class b/bin/app/evaluate$7.class index c5f1689..a81fd08 100644 Binary files a/bin/app/evaluate$7.class and b/bin/app/evaluate$7.class differ diff --git a/bin/app/evaluate$8.class b/bin/app/evaluate$8.class index 671305d..b071118 100644 Binary files a/bin/app/evaluate$8.class and b/bin/app/evaluate$8.class differ diff --git a/bin/app/evaluate$9.class b/bin/app/evaluate$9.class index 5e6daf3..2aadcef 100644 Binary files a/bin/app/evaluate$9.class and b/bin/app/evaluate$9.class differ diff --git a/bin/app/evaluate.class b/bin/app/evaluate.class index 792f3f4..6819154 100644 Binary files a/bin/app/evaluate.class and b/bin/app/evaluate.class differ diff --git a/src/app/create.java b/src/app/create.java index 8653c61..dd58981 100644 --- a/src/app/create.java +++ b/src/app/create.java @@ -94,7 +94,7 @@ public class create extends JFrame { setIconImage(img.getImage()); setLocationRelativeTo( null ); - setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // Construction et injection de la barre de menu setJMenuBar( this.createMenuBar() ); @@ -143,6 +143,9 @@ public class create extends JFrame { */ private void ListenerAction() { + /** + * Selection d'un node dans le JTree. + */ tree.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { @@ -154,6 +157,21 @@ public class create extends JFrame { } } }); + + + /** + * Fermeture de la fenêtre. + */ + addWindowListener(new java.awt.event.WindowAdapter() { + @Override + public void windowClosing(java.awt.event.WindowEvent windowEvent) { + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + dispose(); + }; + } + }); + + } @@ -904,15 +922,9 @@ public class create extends JFrame { } @Override public void actionPerformed( ActionEvent e ) { - - int a = JOptionPane.showConfirmDialog(null,"Voulez-vous quitter l'application?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); - - if(a == JOptionPane.YES_NO_OPTION) { - System.out.println( "Le choix : " + a); - System.out.println( "Exit" + e.getSource().toString()); - create.this.dispose(); - } - + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + dispose(); + } } }; diff --git a/src/app/evaluate.java b/src/app/evaluate.java index 9842647..65ce363 100644 --- a/src/app/evaluate.java +++ b/src/app/evaluate.java @@ -80,7 +80,7 @@ public class evaluate extends JFrame { this.setIconImage(img.getImage()); setTitle(commandes.Titre + " " + commandes.version + " " + commandes.branch); - setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); setBounds(100, 100, 980, 700); int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth(); int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight(); @@ -254,6 +254,10 @@ public class evaluate extends JFrame { this.setExtendedState(MAXIMIZED_BOTH); + + + ListenerAction(); + refreshLabel(); setVisible(true); // Pro(); @@ -261,6 +265,20 @@ public class evaluate extends JFrame { } + private void ListenerAction() { + + /*Some piece of code*/ + addWindowListener(new java.awt.event.WindowAdapter() { + @Override + public void windowClosing(java.awt.event.WindowEvent windowEvent) { + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + dispose(); + } + } + }); + } + + private void createMenu() { @@ -807,15 +825,9 @@ public class evaluate extends JFrame { } @Override public void actionPerformed( ActionEvent e ) { - - int a = JOptionPane.showConfirmDialog(null,"Voulez-vous quitter l'application?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); - - if(a == JOptionPane.YES_NO_OPTION) { - System.out.println( "Le choix : " + a); - System.out.println( "Exit" + e.getSource().toString()); - dispose(); - } - + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + dispose(); + } } };