en:gui-usage
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:gui-usage [2017/04/18 19:58] – [Canvas] roehner | en:gui-usage [2022/09/02 10:20] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 7: | Zeile 7: | ||
With the method setLocation(int x, int y) of a JLabel-component you can animate an image. | With the method setLocation(int x, int y) of a JLabel-component you can animate an image. | ||
- | < | + | < |
\\ | \\ | ||
\\ | \\ | ||
Zeile 74: | Zeile 74: | ||
---- | ---- | ||
- | ==== JRadioButton & JButtonGroup | + | ==== ButtonGroup |
{{: | {{: | ||
- | JRadiobuttons 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 the JRadioButtons | + | |
- | Write the name of this ButtonGroup for each JRadioButton as value of the attribute | + | |
- | The Java-Editor places this method into the java source code: | + | For a buttongroup of radiobuttons the Java-Editor places this method into the java source code: |
- | <code java> | + | <code java> |
- | so it's easy to get the selected JRadioButton of a ButtonGroup. Example: | + | so it's easy to get the selected JRadioButton of a Buttongroup. Example: |
- | <code java> | + | <code java> |
\\ | \\ | ||
---- | ---- |
en/gui-usage.txt · Zuletzt geändert: 2022/09/02 10:20 von 127.0.0.1