Update for comboboxes
This commit is contained in:
parent
2b161741db
commit
a2f1c5f9cb
1 changed files with 40 additions and 12 deletions
|
@ -1,6 +1,8 @@
|
|||
package uk.ac.aber.cs221.group20.javafx;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.ComboBox;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.image.Image;
|
||||
|
@ -55,6 +57,18 @@ public class TranslationController extends SharedCodeController {
|
|||
@FXML
|
||||
private ImageView submitButton;
|
||||
|
||||
@FXML
|
||||
private ComboBox<String> specialChar3;
|
||||
|
||||
@FXML
|
||||
private ComboBox<String> specialChar2;
|
||||
|
||||
@FXML
|
||||
private ComboBox<String> specialChar4;
|
||||
|
||||
@FXML
|
||||
private ComboBox<String> specialChar1;
|
||||
|
||||
Random rand = new Random();
|
||||
|
||||
// //////// //
|
||||
|
@ -109,4 +123,18 @@ public class TranslationController extends SharedCodeController {
|
|||
|
||||
|
||||
}
|
||||
|
||||
public void specialChar1(ActionEvent actionEvent){
|
||||
translationBox.appendText(specialChar1.getValue());
|
||||
}
|
||||
|
||||
public void specialChar2(ActionEvent actionEvent) {
|
||||
translationBox.appendText(specialChar2.getValue());
|
||||
}
|
||||
public void specialChar3(ActionEvent actionEvent) {
|
||||
translationBox.appendText(specialChar3.getValue());
|
||||
}
|
||||
public void specialChar4(ActionEvent actionEvent) {
|
||||
translationBox.appendText(specialChar4.getValue());
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue