Moved Windows class inside the SpaceShipSim class (for file simplicity).
This commit is contained in:
parent
7ed497892b
commit
83e84ba74c
@ -11,7 +11,7 @@
|
||||
|
||||
<target name="compile" >
|
||||
<mkdir dir="${classes.dir}" />
|
||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
|
||||
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile" >
|
||||
|
@ -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(); }
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user