Skip to content

Instantly share code, notes, and snippets.

@hendrikebbers
Created November 1, 2014 16:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hendrikebbers/d9b1b4d7f4b048ecc20d to your computer and use it in GitHub Desktop.
JWrap JavaFX View
public class JavaFXDemoView extends VBox {
public JavaFXDemoView() {
setSpacing(12);
setPadding(new Insets(12));
Button myButton = new Button("Get weather by city");
myButton.setId("myButton");
TextField myTextField = new TextField();
myTextField.setId("myTextField");
Label myLabel = new Label("Result...");
myLabel.setId("myLabel");
getChildren().addAll(myTextField, myButton, myLabel);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment