-
Notifications
You must be signed in to change notification settings - Fork 18
/
StageTest.java
35 lines (27 loc) · 854 Bytes
/
StageTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package v1_0_0;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import lk.vivoxalabs.customstage.CustomStage;
import lk.vivoxalabs.customstage.CustomStageBuilder;
/**
* Created by oshan on 08-Mar-18.
*
* @author oshan
*/
public class StageTest extends Application{
public static void main(String args[]){
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
//Whole usage of CustomStage
CustomStage stage = new CustomStageBuilder()
.setWindowTitle("CustomStage example")
.setWindowColor("rgb(34,54,122)")
.build();
stage.show();
//Change the scene of the window
//stage.changeScene(FXMLLoader.load(getClass().getResource("Dashboard.fxml")));
}
}