Skip to content

Commit 5bd31ac

Browse files
committed
first commit
0 parents  commit 5bd31ac

File tree

7 files changed

+66
-0
lines changed

7 files changed

+66
-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"/>
5+
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

.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>SpillProsjekt</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>

bin/application/Main.class

1.43 KB
Binary file not shown.

bin/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 */

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="SpillProsjekt"/>
5+
<info/>
6+
</deploy>
7+
<signjar/>
8+
</anttasks:AntTask>

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,800,600);
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/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)