Skip to content

Commit 2a5e169

Browse files
committed
add controller
1 parent 5093025 commit 2a5e169

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4220
-484
lines changed

.github/README.md

-90
This file was deleted.
Binary file not shown.
Binary file not shown.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/QuizzClient/target/
55
/QuizzClient/dependency-reduced-pom.xml
66
/QuizzClient/bin/
7+
/.metadata/

.project

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Java-project</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>

QuizzClient/.classpath

+17
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,22 @@
3636
<attribute name="maven.pomderived" value="true"/>
3737
</attributes>
3838
</classpathentry>
39+
<classpathentry kind="src" path="target/generated-sources/annotations">
40+
<attributes>
41+
<attribute name="optional" value="true"/>
42+
<attribute name="maven.pomderived" value="true"/>
43+
<attribute name="ignore_optional_problems" value="true"/>
44+
<attribute name="m2e-apt" value="true"/>
45+
</attributes>
46+
</classpathentry>
47+
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
48+
<attributes>
49+
<attribute name="optional" value="true"/>
50+
<attribute name="maven.pomderived" value="true"/>
51+
<attribute name="ignore_optional_problems" value="true"/>
52+
<attribute name="m2e-apt" value="true"/>
53+
<attribute name="test" value="true"/>
54+
</attributes>
55+
</classpathentry>
3956
<classpathentry kind="output" path="target/classes"/>
4057
</classpath>

QuizzClient/src/main/java/application/Main.java

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,23 @@
1414
public class Main extends Application {
1515

1616
@Override
17-
public void start(Stage primaryStage) {
17+
public void start(Stage primaryStage) throws Exception {
1818
try {
1919
primaryStage.getIcons().add(new Image("/imgs/icon.png"));
20-
primaryStage.setTitle("Quizz Client");
20+
primaryStage.setTitle("Quizz Server - HEHE");
2121
primaryStage.show();
2222

23-
FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/Student_Start.fxml"));
23+
FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/workspace-management.fxml"));
2424
Parent root = (Parent) loader.load();
2525
Scene scene = new Scene(root, Constant.ScreenSize.WIDTH, Constant.ScreenSize.HEIGHT);
2626

2727
primaryStage.setMinWidth(1300);
2828
primaryStage.setMinHeight(900);
2929
primaryStage.setScene(scene);
3030
primaryStage.setMaximized(true);
31+
primaryStage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
32+
33+
scene.setOnKeyPressed(KeyEventFunction.toggleFullScreen(primaryStage));
3134

3235
primaryStage.setOnCloseRequest(event -> {
3336
Platform.exit();
@@ -41,4 +44,4 @@ public void start(Stage primaryStage) {
4144
public static void main(String[] args) {
4245
launch(args);
4346
}
44-
}
47+
}

0 commit comments

Comments
 (0)