diff --git a/tank/.classpath b/tank/.classpath new file mode 100644 index 0000000..bcb0a07 --- /dev/null +++ b/tank/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/tank/.project b/tank/.project new file mode 100644 index 0000000..1e925cd --- /dev/null +++ b/tank/.project @@ -0,0 +1,17 @@ + + + tank + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/tank/.settings/org.eclipse.jdt.core.prefs b/tank/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..3a21537 --- /dev/null +++ b/tank/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/tank/bin/com/mashibing/tank/T$1.class b/tank/bin/com/mashibing/tank/T$1.class new file mode 100644 index 0000000..78f90f1 Binary files /dev/null and b/tank/bin/com/mashibing/tank/T$1.class differ diff --git a/tank/bin/com/mashibing/tank/T.class b/tank/bin/com/mashibing/tank/T.class new file mode 100644 index 0000000..7841e02 Binary files /dev/null and b/tank/bin/com/mashibing/tank/T.class differ diff --git a/tank/src/com/mashibing/tank/T.java b/tank/src/com/mashibing/tank/T.java new file mode 100644 index 0000000..24b2d3b --- /dev/null +++ b/tank/src/com/mashibing/tank/T.java @@ -0,0 +1,28 @@ +package com.mashibing.tank; + +import java.awt.Frame; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; + +public class T { + + public static void main(String[] args) { + + Frame f = new Frame(); + f.setVisible(true); + f.setSize(800,600); + f.setResizable(false); + f.setTitle("tank war"); + + f.addWindowFocusListener(new WindowAdapter() { + + @Override + public void windowClosing(WindowEvent e) { + System.exit(0); + } + + + }); + } + +}