en:javafx
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:javafx [2019/04/07 20:04] – roehner | en:javafx [2022/09/02 10:27] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
JavaFX is supported as of version 14.0 by the Java-Editor. The development of this new graphical user interface for the Java-Editor took many months. But I think that the work was worth it. You can now work with a contemporary GUI library, which can also be designed with CSS. Creating a GUI interface is made even easier for novice programmers because, by default, the Object-Inspector displays only the most important attributes of GUI components. This makes the GUI components much easier to configure. In addition, graphic basic figures such as circle, rectangle and polygon are now available, which can also be used to design simple GUI applications with graphic objects in the classroom. | JavaFX is supported as of version 14.0 by the Java-Editor. The development of this new graphical user interface for the Java-Editor took many months. But I think that the work was worth it. You can now work with a contemporary GUI library, which can also be designed with CSS. Creating a GUI interface is made even easier for novice programmers because, by default, the Object-Inspector displays only the most important attributes of GUI components. This makes the GUI components much easier to configure. In addition, graphic basic figures such as circle, rectangle and polygon are now available, which can also be used to design simple GUI applications with graphic objects in the classroom. | ||
- | Please note that in the configuration under // | + | As of JDK 11 JavaFX is no longer included in the JDK and must be additionally installed. You can download a JavaFX Windows SDK from https:// |
- | + | ||
- | As of JDK 11 JavaFX is no longer included in the JDK and must be additionally installed. You can download a JavaFX Windows SDK from https:// | + | |
A documentation of JavaFX can be downloaded at https:// | A documentation of JavaFX can be downloaded at https:// | ||
{{: | {{: | ||
+ | Please note that in the configuration under // | ||
Gerhard Röhner | Gerhard Röhner | ||
Zeile 84: | 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 154: | 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.txt · Zuletzt geändert: 2022/09/02 10:27 von 127.0.0.1