This repository was archived by the owner on Jan 15, 2021. It is now read-only.
File tree 3 files changed +12
-5
lines changed
snobot_sim_gui_javafx/src/main
java/com/snobot/simulator
resources/com/snobot/simulator
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 9
9
import javafx .fxml .FXMLLoader ;
10
10
import javafx .scene .Scene ;
11
11
import javafx .scene .layout .Pane ;
12
+ import javafx .stage .Screen ;
12
13
import javafx .stage .Stage ;
13
14
14
15
public class SimulatorApplication extends Application
@@ -43,6 +44,12 @@ public final void notifyPreloader2(PreloaderNotification aInfo)
43
44
public void start (Stage aPrimaryStage ) throws Exception
44
45
{
45
46
aPrimaryStage .setScene (new Scene (mMainPane ));
47
+ aPrimaryStage .setTitle ("SnobotSim" );
48
+ aPrimaryStage .setMinWidth (300 );
49
+ aPrimaryStage .setMinHeight (480 );
50
+ aPrimaryStage .setWidth (300 );
51
+ aPrimaryStage .setHeight (Screen .getPrimary ().getVisualBounds ().getHeight ());
52
+
46
53
aPrimaryStage .show ();
47
54
48
55
mSimulator .startSimulation ();
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class SimulatorPreloaderController
19
19
private ProgressBar mProgressBar ;
20
20
21
21
@ FXML
22
- public void initialize ()
22
+ private void initialize ()
23
23
{
24
24
mProgressBar .setProgress (-1 );
25
25
mVersionLabel .setText (SnobotSimGuiVersion .Version );
Original file line number Diff line number Diff line change 11
11
fx : controller =" com.snobot.simulator.SimulatorPreloaderController"
12
12
fx : id =" root"
13
13
prefWidth =" 480.0" prefHeight =" 240.0" >
14
- <Pane fx : id =" backgroundContainer " />
14
+ <Pane fx : id =" mBackgroundContainer " />
15
15
<center >
16
16
<StackPane >
17
17
<VBox alignment =" CENTER_LEFT" maxWidth =" -Infinity" >
18
18
<Label text =" SnobotSim" />
19
- <Label fx : id =" versionLabel " />
19
+ <Label fx : id =" mVersionLabel " />
20
20
</VBox >
21
21
</StackPane >
22
22
</center >
23
23
<bottom >
24
24
<VBox >
25
- <Label fx : id =" stateLabel " alignment =" CENTER" maxWidth =" Infinity" textAlignment =" CENTER" />
26
- <ProgressBar fx : id =" progressBar " maxWidth =" Infinity" progress =" 0" />
25
+ <Label fx : id =" mStateLabel " alignment =" CENTER" maxWidth =" Infinity" textAlignment =" CENTER" />
26
+ <ProgressBar fx : id =" mProgressBar " maxWidth =" Infinity" progress =" 0" />
27
27
</VBox >
28
28
</bottom >
29
29
</BorderPane >
You can’t perform that action at this time.
0 commit comments