Travis Customizer "+TCInformation.TCVersion+"
"; + + private JMenuBar menuBar; + private JMenu fileMenu; + private JMenuItem newFileItem, loadFileItem, closeItem; + private NewFileWindow nfWindow; + private ImagePanel imagePanel; + private JLabel aboutLabel; + + + public TravisCustomizer() + { + super(TITLE); + initializeComponents(); + setVisible(true); + this.setExtendedState(MAXIMIZED_BOTH); + this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + } + + + private void initializeComponents() + { + this.setLayout(new BorderLayout()); + menuBar = new JMenuBar(); + fileMenu = new JMenu("File"); + newFileItem = new JMenuItem("New File"); + loadFileItem = new JMenuItem("Load File"); + closeItem = new JMenuItem("Close"); + + nfWindow = new NewFileWindow(); + + aboutLabel = new JLabel(ABOUT); + imagePanel = new ImagePanel("src/main/resources/TravisCustomizerLogo.png"); + + newFileItem.addActionListener(this); + loadFileItem.addActionListener(this); + closeItem.addActionListener(this); + + fileMenu.add(newFileItem); + fileMenu.add(loadFileItem); + fileMenu.add(closeItem); + menuBar.add(fileMenu); + setJMenuBar(menuBar); + this.add(imagePanel, BorderLayout.CENTER); + this.add(aboutLabel, BorderLayout.SOUTH); + + } + + public void actionPerformed(ActionEvent e) + { + + if(e.getSource() == closeItem) + askForClose(); + if(e.getSource() == newFileItem) + nfWindow.setVisible(true); + } + + + public static void askForClose() { + int result = JOptionPane.showConfirmDialog(null, "Are you sure you want to exit Travis CI Customizer?", "Exit from Travis CI Customizer", JOptionPane.YES_NO_OPTION); + + if (result == JOptionPane.YES_OPTION) System.exit(0); + } +} diff --git a/src/main/resources/TravisCustomizerLogo.png b/src/main/resources/TravisCustomizerLogo.png new file mode 100644 index 0000000..8983be0 Binary files /dev/null and b/src/main/resources/TravisCustomizerLogo.png differ diff --git a/target/TravisCustomizer-0.1-SNAPSHOT.jar b/target/TravisCustomizer-0.1-SNAPSHOT.jar new file mode 100644 index 0000000..022d7d0 Binary files /dev/null and b/target/TravisCustomizer-0.1-SNAPSHOT.jar differ diff --git a/target/classes/NewFileWindow.class b/target/classes/NewFileWindow.class new file mode 100644 index 0000000..c083e10 Binary files /dev/null and b/target/classes/NewFileWindow.class differ diff --git a/target/classes/Panels/BeforeInstallPanel.class b/target/classes/Panels/BeforeInstallPanel.class new file mode 100644 index 0000000..909505f Binary files /dev/null and b/target/classes/Panels/BeforeInstallPanel.class differ diff --git a/target/classes/Panels/ImagePanel.class b/target/classes/Panels/ImagePanel.class new file mode 100644 index 0000000..03b8827 Binary files /dev/null and b/target/classes/Panels/ImagePanel.class differ diff --git a/target/classes/Panels/InstallPanel$1.class b/target/classes/Panels/InstallPanel$1.class new file mode 100644 index 0000000..7c9c855 Binary files /dev/null and b/target/classes/Panels/InstallPanel$1.class differ diff --git a/target/classes/Panels/InstallPanel.class b/target/classes/Panels/InstallPanel.class new file mode 100644 index 0000000..0af19ef Binary files /dev/null and b/target/classes/Panels/InstallPanel.class differ diff --git a/target/classes/Panels/PreStepsPanel$1.class b/target/classes/Panels/PreStepsPanel$1.class new file mode 100644 index 0000000..918f0ae Binary files /dev/null and b/target/classes/Panels/PreStepsPanel$1.class differ diff --git a/target/classes/Panels/PreStepsPanel$2.class b/target/classes/Panels/PreStepsPanel$2.class new file mode 100644 index 0000000..9d3a965 Binary files /dev/null and b/target/classes/Panels/PreStepsPanel$2.class differ diff --git a/target/classes/Panels/PreStepsPanel$3.class b/target/classes/Panels/PreStepsPanel$3.class new file mode 100644 index 0000000..2b2d2a8 Binary files /dev/null and b/target/classes/Panels/PreStepsPanel$3.class differ diff --git a/target/classes/Panels/PreStepsPanel$4.class b/target/classes/Panels/PreStepsPanel$4.class new file mode 100644 index 0000000..597589c Binary files /dev/null and b/target/classes/Panels/PreStepsPanel$4.class differ diff --git a/target/classes/Panels/PreStepsPanel$5.class b/target/classes/Panels/PreStepsPanel$5.class new file mode 100644 index 0000000..e096dae Binary files /dev/null and b/target/classes/Panels/PreStepsPanel$5.class differ diff --git a/target/classes/Panels/PreStepsPanel.class b/target/classes/Panels/PreStepsPanel.class new file mode 100644 index 0000000..229ec90 Binary files /dev/null and b/target/classes/Panels/PreStepsPanel.class differ diff --git a/target/classes/Panels/StepPanel$1.class b/target/classes/Panels/StepPanel$1.class new file mode 100644 index 0000000..0f08553 Binary files /dev/null and b/target/classes/Panels/StepPanel$1.class differ diff --git a/target/classes/Panels/StepPanel.class b/target/classes/Panels/StepPanel.class new file mode 100644 index 0000000..c441bc7 Binary files /dev/null and b/target/classes/Panels/StepPanel.class differ diff --git a/target/classes/TCInformation.class b/target/classes/TCInformation.class new file mode 100644 index 0000000..139bf57 Binary files /dev/null and b/target/classes/TCInformation.class differ diff --git a/target/classes/TCLauncher.class b/target/classes/TCLauncher.class new file mode 100644 index 0000000..548781e Binary files /dev/null and b/target/classes/TCLauncher.class differ diff --git a/target/classes/TravisCustomizer.class b/target/classes/TravisCustomizer.class new file mode 100644 index 0000000..75a134f Binary files /dev/null and b/target/classes/TravisCustomizer.class differ diff --git a/target/classes/TravisCustomizerLogo.png b/target/classes/TravisCustomizerLogo.png new file mode 100644 index 0000000..8983be0 Binary files /dev/null and b/target/classes/TravisCustomizerLogo.png differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..3273415 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Tue Aug 01 11:17:36 CEST 2017 +version=0.1-SNAPSHOT +groupId=com.traviscustomizer +artifactId=TravisCustomizer diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..8fc9024 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,8 @@ +Panels\BeforeInstallPanel.class +Panels\StepPanel.class +NewFileWindow.class +TCLauncher.class +Panels\StepPanel$1.class +TCInformation.class +TravisCustomizer.class +Panels\ImagePanel.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..6a063b6 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,7 @@ +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\Panels\BeforeInstallPanel.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\Panels\StepPanel.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\TCInformation.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\TravisCustomizer.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\NewFileWindow.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\Panels\ImagePanel.java +C:\Users\Cesar\Desktop\TravisCustomizer\src\main\java\TCLauncher.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29