forked from MasterFlomaster1/JFXCrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowKey.java
More file actions
31 lines (26 loc) · 834 Bytes
/
Copy pathShowKey.java
File metadata and controls
31 lines (26 loc) · 834 Bytes
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
package GUI;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.io.IOException;
class ShowKey {
void showKey() {
try {
Stage showKey = new Stage();
Parent content = FXMLLoader.load(getClass().getResource("ShowKey.fxml"));
Scene scene = new Scene(content);
content.setId("showKey");
showKey.setTitle("key");
showKey.getIcons().add(new Image("/SJC1.png"));
showKey.setResizable(false);
showKey.setScene(scene);
showKey.initModality(Modality.APPLICATION_MODAL);
showKey.show();
} catch (IOException e) {
e.printStackTrace();
}
}
}