Java Reference
In-Depth Information
visible: false
width: bind stage.width
height: 15
text: "Loading..."
},
// Weather data fields
app=VBox {
translateX: 50
translateY: 30
spacing: 10
content: [
HBox { content: [
Text {
translateY:
bind input.boundsInLocal.height/2;
content: "ZIP Code:"
},
input = TextBox {
columns: 6
value: bind zipCode with inverse
selectOnFocus: true
action: function(): Void {
requestCoordinatesAndWeather();
}
}]
},
HBox { content: [
Text {
textOrigin: TextOrigin.TOP
content: "City:"
},
Text {
textOrigin: TextOrigin.TOP
content:
bind "{location.city}, {location.state}"
fill: Color.BLUE
}]
},
// ...
]
}
// ...
}
Each weather text field, which actually consists of two JavaFX Text fields—a
label and value both arranged horizontally—are bound to variables that are
Search WWH ::




Custom Search