From 0ab43c1d75f60a11db0f30de6afea71c3a29ba39 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Thu, 21 Mar 2019 21:05:34 +0100 Subject: [PATCH] Added .gitignore and application frame class --- .classpath | 10 +++++ .gitignore | 55 +++++++++++++++++++++++ .project | 17 +++++++ src/dev/kske/minesweeper/Minesweeper.java | 47 +++++++++++++++++++ src/module-info.java | 3 ++ 5 files changed, 132 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project create mode 100644 src/dev/kske/minesweeper/Minesweeper.java create mode 100644 src/module-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..9af0373 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3417075 --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet diff --git a/.project b/.project new file mode 100644 index 0000000..137b252 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + Minesweeper + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/src/dev/kske/minesweeper/Minesweeper.java b/src/dev/kske/minesweeper/Minesweeper.java new file mode 100644 index 0000000..a9af539 --- /dev/null +++ b/src/dev/kske/minesweeper/Minesweeper.java @@ -0,0 +1,47 @@ +package dev.kske.minesweeper; + +import java.awt.EventQueue; + +import javax.swing.JFrame; + + +public class Minesweeper { + + private JFrame mframe; + + /** + * Launch the application. + */ + public static void main(String[] args) { + EventQueue.invokeLater(new Runnable() { + + public void run() { + try { + Minesweeper window = new Minesweeper(); + window.mframe.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + }); + } + + /** + * Create the application. + */ + public Minesweeper() { + initialize(); + } + + /** + * Initialize the contents of the frame. + */ + private void initialize() { + mframe = new JFrame(); + mframe.setResizable(false); + mframe.setTitle("Minesweeper"); + mframe.setBounds(100, 100, 450, 300); + mframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + } + +} diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..1649271 --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,3 @@ +module Minesweeper { + requires java.desktop; +} \ No newline at end of file