-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller_Inicio.java
61 lines (47 loc) · 1.31 KB
/
Controller_Inicio.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
56
57
58
59
60
61
package bloodbanks;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
public class Controller_Inicio implements Initializable {
public modelo_inicio modelo = null;
@FXML
public TextField txtcontrol;
@FXML
public PasswordField txtpassword;
@FXML
public Button btn_log;
@FXML
public ImageView btnarduino;
@FXML
public Label txtardo;
@FXML
public Label txtalias;
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
@FXML
private void btnlog_click(MouseEvent event) {
this.modelo.verifica();
}
@FXML
private void btncontrol_kp(KeyEvent event) {
this.modelo.btnaliaskp(event);
}
@FXML
private void btnpass_kp(KeyEvent event) {
this.modelo.btnpasskp(event);
}
@FXML
private void btnarduinoclick(MouseEvent event) {
this.modelo.btnarduinokp();
}
}