1 package fi.jyu.mit.fxgui;
3 import java.io.IOException;
5 import javafx.fxml.FXML;
6 import javafx.fxml.FXMLLoader;
7 import javafx.scene.control.Label;
8 import javafx.scene.control.TextField;
9 import javafx.scene.layout.AnchorPane;
16 @FXML
private TextField
edit;
35 FXMLLoader fxmlLoader =
new FXMLLoader(getClass().getResource(
resourcePath));
36 fxmlLoader.setRoot(
this);
37 fxmlLoader.setController(
this);
40 }
catch (IOException exception) {
41 throw new RuntimeException(exception);
47 return edit.getText();
64 return AnchorPane.getLeftAnchor(
edit);
68 AnchorPane.setLeftAnchor(
edit,w);