-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMentorController.java
More file actions
58 lines (40 loc) · 1.37 KB
/
MentorController.java
File metadata and controls
58 lines (40 loc) · 1.37 KB
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 jobinterviewpreparationsystem;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.ToggleGroup;
import javafx.scene.text.Text;
public class MentorController {
@FXML
private RadioButton mockInterviewRadio;
@FXML
private RadioButton feedbackRadio;
@FXML
private Button confirmButton;
@FXML
private ToggleGroup toggleGroup;
@FXML
private void handleSelection(ActionEvent event) {
if (mockInterviewRadio.isSelected()) {
JobInterviewPreparationSystem.showCreateMockScreen();
} else if (feedbackRadio.isSelected()) {
JobInterviewPreparationSystem.showFeedbackScreen();
} else {
showAlert("Selection Error", "Please select either Mock Interview or Feedback option.");
}
}
private void showAlert(String title, String message) {
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle(title);
alert.setHeaderText(null);
alert.setContentText(message);
alert.showAndWait();
}
}