Skip to content

Commit 83d8179

Browse files
committed
Initial commit
0 parents  commit 83d8179

10 files changed

+100
-0
lines changed

.classpath

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
5+
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/

.project

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Calculator</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
21+
<nature>org.eclipse.jdt.core.javanature</nature>
22+
</natures>
23+
</projectDescription>

.settings/org.eclipse.jdt.core.prefs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.8

build.fxbuild

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="ASCII"?>
2+
<anttasks:AntTask xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:anttasks="http://org.eclipse.fx.ide.jdt/1.0" buildDirectory="${project}/build">
3+
<deploy>
4+
<application name="Calculator"/>
5+
<info/>
6+
</deploy>
7+
<signjar/>
8+
</anttasks:AntTask>

src/application/Controller.java

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package application;
2+
3+
public class Controller {
4+
5+
}

src/application/Main.java

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package application;
2+
3+
import javafx.application.Application;
4+
import javafx.stage.Stage;
5+
import javafx.scene.Scene;
6+
import javafx.scene.layout.BorderPane;
7+
8+
9+
public class Main extends Application {
10+
@Override
11+
public void start(Stage primaryStage) {
12+
try {
13+
BorderPane root = new BorderPane();
14+
Scene scene = new Scene(root,400,400);
15+
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
16+
primaryStage.setScene(scene);
17+
primaryStage.show();
18+
} catch(Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
23+
public static void main(String[] args) {
24+
launch(args);
25+
}
26+
}

src/application/MainWindowView.fxml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import javafx.scene.layout.AnchorPane?>
4+
5+
<AnchorPane xmlns:fx="http://javafx.com/fxml/1">
6+
<!-- TODO Add Nodes -->
7+
</AnchorPane>
8+
9+
<VBox fx:controller="application.Controller" xmlns:fx="http://javafx.com/fml">
10+
<StackPane alignment="CENTER">
11+
<Rectangle fill="TRANSPARENT" stroke="GRAY" width="250"></Rectangle>
12+
</StackPane>
13+
</VBox>

src/application/Model.java

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package application;
2+
3+
public class Model {
4+
5+
}

src/application/application.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */

0 commit comments

Comments
 (0)