diff --git a/build.xml b/build.xml index 30f608f..d935e49 100644 --- a/build.xml +++ b/build.xml @@ -11,7 +11,7 @@ - + diff --git a/src/spaceshipsim/SpaceShipSim.java b/src/spaceshipsim/SpaceShipSim.java index 6750255..7a20822 100644 --- a/src/spaceshipsim/SpaceShipSim.java +++ b/src/spaceshipsim/SpaceShipSim.java @@ -115,5 +115,11 @@ public class SpaceShipSim { frame.setJMenuBar(menuBar); } + public class Window { + public Window(String title, String msg) { + JOptionPane.showMessageDialog(null, msg, title, JOptionPane.INFORMATION_MESSAGE); + } + } + public static void main(String[] args) { new SpaceShipSim(); } } diff --git a/src/spaceshipsim/Window.java b/src/spaceshipsim/Window.java deleted file mode 100644 index faff1bb..0000000 --- a/src/spaceshipsim/Window.java +++ /dev/null @@ -1,16 +0,0 @@ -package spaceshipsim; - -import javax.swing.*; - -/** - * @author Nicolás A. Ortega - * @copyright Nicolás A. Ortega - * @license GNU GPLv3 - * @year 2014 - * - */ -public class Window { - public Window(String title, String infoMessage) { - JOptionPane.showMessageDialog(null, infoMessage, title, JOptionPane.INFORMATION_MESSAGE); - } -} \ No newline at end of file