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