Browse Source

added maven framework

remotes/origin/develop
fdai6499 2 years ago
parent
commit
91595df327
  1. 17
      pom.xml
  2. 10
      sudokuExample/src/Main.java

17
pom.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>sudoku_team_deepthought</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

10
sudokuExample/src/Main.java

@ -1,5 +1,8 @@
import javax.swing.*; import javax.swing.*;
import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Main { public class Main {
@ -10,15 +13,12 @@ public class Main {
@Override @Override
public void run() { public void run() {
JFrame main = new JFrame(); JFrame main = new JFrame();
main.setLayout(null); main.setLayout(null);
main.setVisible(true); main.setVisible(true);
main.setBounds(300, 300, 500, 500);
JPanel root = new JPanel();
main.setBounds(300, 200, 500, 500);
main.setContentPane(root);
} }
}); });

Loading…
Cancel
Save