• Keine Ergebnisse gefunden

JavaFX - Controls

N/A
N/A
Protected

Academic year: 2022

Aktie "JavaFX - Controls"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Java http://kohnlehome.de/java/javafx-controls.pdf

JavaFX - Controls

FXML Eventhandler

<Label fx:id = "label"

text = "Ausgabe" /> ---

<Button fx:id = "button"

text = "Dr¨uck mich" />

button.setOnAction( (event) -> { ...

});

<TextField fx:id = "textField"

text = "Eingabe" />

<TextArea ... />

textField.setOnAction( (event) -> { ...

... = textField.getText();

...

});

textField.textProperty().addListener ( (observable, alterWert, neuerWert) -> { ...

});

<Slider fx:id = "slider"

min = "0"

max = "100"

value = "50" />

slider.valueProperty().addListener (

(observable, alterWert, neuerWert) -> { ...

... = neuerWert;

...

});

<CheckBox fx:id = "checkBox"

text = "Option"

selected = "true" />

checkbox.setOnAction( (event) -> { ...

... = checkBox.isSelected();

...

});

<...Pane>

<fx:define>

<ToggleGroup fx:id = "gruppe" />

</fx:define>

<children>

<RadioButton fx:id = "radio1"

text = "A"

toggleGroup = "$gruppe" />

<RadioButton text = "B"

toggleGroup = "$gruppe" />

<RadioButton text = "C"

toggleGroup = "$gruppe" />

</children>

</...Pane>

radio1.selectedProperty().addListener ( (observable, alterWert, neuerWert) -> { ...

});

gruppe.selectedToggleProperty().addListener ( (observable, alterWert, neuerWert) -> { ...

... = group.getSelectedToggle();

...

});

<ChoiceBox fx:id = "choiceBox"

value = "Berta">

<String fx:value = "Anna" />

<String fx:value = "Berta" />

<String fx:value = "Carla" />

</ChoiceBox>

choiceBox.getSelectionModel()

.selectedIndexProperty().addListener(

(observable, alterWert, neuerWert) -> { ...

... = neuerWert;

...

});

Franz Kohnle Seite 1 von 1 11. November 2014

Referenzen

ÄHNLICHE DOKUMENTE

closely associated lateral chordotonal neurons. Thus, the gene was called bunched. Furthermore, 

Informal local au- thorities like clans and Njuri Ncheke council of elders (and in- deed elders at the household level) continue to exercise some control over land use, mostly

private Button buttonOK; // OK-Button zum Schliessen des Dialogfenster private Daten daten; // zum Austausch Hauptfenster &lt;-&gt; Dialogfenster public DialogMitController() {.

// DIESER CODE WIRD REGELMAESSIG AUSGEFUEHRT

protected Integer call() throws Exception { // im Thread ausgef¨ uhrter Quellcode return 42;.

PD-0yr (untreated Parkinson’s disease patients), PD-1yr (patients treated for one year), PD-2yr (patients treated for two years).. (*) indicate significant differences between

In 3 of 12 cases, a mixed profile of two donors with distinct major and minor components were found: in one sample, this was most likely due to contamination, as the minor

The variational principle we prove below (Theorem 3.1) states that for systems of partial differential equations or inclusions, the contingent solu- tions are