-
Notifications
You must be signed in to change notification settings - Fork 6
/
Find.java
55 lines (43 loc) · 1.56 KB
/
Find.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package potplayer;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.scene.paint.Color;
import javafx.scene.control.Label;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
public class Find {
// Alert aboutBox;
Stage findStage;
public Find() {
// aboutBox = new Alert(AlertType.INFORMATION);
// aboutBox.setTitle("about");
// aboutBox.setHeaderText("PotPlayer");
// aboutBox.setContentText("Im Yes");
this.findStage = new Stage();
this.findStage.setTitle("Find movie");
this.findStage.getIcons().add(new Image("PotPlayer/logo/potplayer.jpg"));
this.findStage.setWidth(300);
this.findStage.setHeight(225);
this.findStage.setResizable(false);
this.findStage.initStyle(StageStyle.UTILITY);
this.findStage.initModality(Modality.APPLICATION_MODAL);
try {
BorderPane findBorderPane = FXMLLoader.load(getClass().getResource("./fxml/find.fxml"));
Scene findScene = new Scene(findBorderPane, 300, 225);
findScene.setFill(Color.BLACK);
this.findStage.setScene(findScene);
} catch (Exception e) {
System.out.println("PARSE FIND FXML ERROR");
System.exit(0);
}
}
public void findShow() {
this.findStage.show();
}
}