-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutController.java
executable file
·32 lines (26 loc) · 1.04 KB
/
AboutController.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
package sample;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXTextArea;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Label;
import java.net.URL;
import java.util.ResourceBundle;
public class AboutController implements Initializable {
@FXML private Label AboutLabel;
@FXML private JFXTextArea AboutTextArea;
@FXML private JFXButton AboutDev;
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
AboutDev.setOnAction(e -> {
Alert aboutDev = new Alert(AlertType.INFORMATION," Developed and tested by IIT2018032 ", ButtonType.OK);
aboutDev.setHeaderText("Information regarding the program here is legit and genuine");
aboutDev.setTitle("About Developer");
aboutDev.setResizable(false);
aboutDev.showAndWait();
});
}
}