en:javafx
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
en:javafx [2019/04/07 20:30] – roehner | en:javafx [2022/09/02 10:27] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 83: | Zeile 83: | ||
<code java> | <code java> | ||
---- | ---- | ||
- | ==== RadioButton & ToggleGroup | + | ==== Buttongroup |
{{: | {{: | ||
- | RadioButtons offer different options, from which you can choose just one.\\ | + | A Buttongroup groups Radiobuttons or Checkboxes. Set the attribute Checkboxes to true if you want a group of Checkboxes. Enter your options using the Items attribute. |
- | To group RadioButtons, | + | For a buttongroup |
- | The name of this ToggleGroup component is specified for each RadioButton in the object inspector at the // | + | |
- | With the help of the ToggleGroup one can determine the selected option: | + | <code java> |
- | + | | |
- | Example: | + | if (rb != null) return rb.getText(); |
- | + | return ""; | |
- | <code java> | + | } </ |
- | String choosen= choosenRadioButton.getText(); </ | + | |
+ | so it's easy to get the selected JRadioButton of a Buttongroup: | ||
+ | <code java> | ||
---- | ---- | ||
==== ListView ==== | ==== ListView ==== | ||
Zeile 153: | Zeile 154: | ||
At runtime you can use the // | At runtime you can use the // | ||
<code java> | <code java> | ||
+ | |||
+ | To react directly to spinner changes, use the // | ||
---- | ---- | ||
==== Canvas ==== | ==== Canvas ==== |
en/javafx.1554661809.txt.gz · Zuletzt geändert: 2019/04/07 20:30 von roehner