Files
openide/plugins/javaFX/testData/highlighting/injected/FooVBox.java
2013-03-21 10:40:38 +01:00

26 lines
631 B
Java

package injected;
import javafx.fxml.FXMLLoader;
import javafx.scene.layout.VBox;
import java.io.IOException;
public class FooVBox extends VBox{
private void loaderCreation() {
MyController controller = new MyController();
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("injectedController.fxml"));
fxmlLoader.setRoot(this);
fxmlLoader.setController(controller);
try {
fxmlLoader.load();
} catch (IOException exception) {
throw new RuntimeException(exception);
}
}
public FooVBox() {
loaderCreation();
}
}