-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHandleClickHide.java
More file actions
37 lines (33 loc) · 1.01 KB
/
HandleClickHide.java
File metadata and controls
37 lines (33 loc) · 1.01 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
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.control.TextField;
import javafx.scene.control.Label;
public class HandleClickHide implements EventHandler<MouseEvent> {
private Label lblrow1, lblrow2, lblrow3, lblcolumn1, lblcolumn2, lblcolumn3;
public void handle (MouseEvent event){
lblrow1.setText("");
lblrow2.setText("");
lblrow3.setText("");
lblcolumn1.setText("");
lblcolumn2.setText("");
lblcolumn3.setText("");
}
public void setRow1(Label lblrow1){
this.lblrow1 = lblrow1;
}
public void setRow2(Label lblrow2){
this.lblrow2 = lblrow2;
}
public void setRow3(Label lblrow3){
this.lblrow3 = lblrow3;
}
public void setColumn1(Label lblcolumn1){
this.lblcolumn1 = lblcolumn1;
}
public void setColumn2(Label lblcolumn2){
this.lblcolumn2 = lblcolumn2;
}
public void setColumn3(Label lblcolumn3){
this.lblcolumn3 = lblcolumn3;
}
}