Created
November 1, 2014 16:53
-
-
Save hendrikebbers/d9b1b4d7f4b048ecc20d to your computer and use it in GitHub Desktop.
JWrap JavaFX View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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