en:gui-usage
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
en:gui-usage [2015/01/01 21:29] – [Canvas] roehner | en:gui-usage [2015/01/02 12:43] – roehner | ||
---|---|---|---|
Zeile 231: | Zeile 231: | ||
\\ | \\ | ||
---- | ---- | ||
- | ==== JTable ==== | ||
- | {{: | ||
- | Set the number of columns and rows with the attributes // | + | ==== JMenuBar ==== |
+ | {{: | ||
- | With the method // | + | With a JMenuBar-component |
+ | to be displayed in the menu bar. | ||
+ | \\ | ||
+ | ---- | ||
- | Example: " | + | ==== JMenu ==== |
+ | {{:de: | ||
- | <code java> | + | With a JMenu-component you create a menu for a menu bar. In the object-inspector you specify the desired menu bar at the //MenuBar// attribute, the menu commands |
- | int i = jTabelle.getSelectedRow(); | + | |
- | jTabelle.setValueAt(" | + | |
- | </code> | + | |
+ | For each menu command the Java-Editor creates a corresponding event method. | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ==== JPopupMenu ==== | ||
+ | {{: | ||
+ | |||
+ | With a JPopupMenu-component you create a popup menu. In the example a canvas component with yellow background reacts on a rightclick and shows the popup menu. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In the object inspector you input at the attribute // | ||
+ | |||
+ | For each menu command the Java-Editor creates a corresponding event method. | ||
+ | |||
+ | \\ | ||
+ | ---- | ||
==== Timer ==== | ==== Timer ==== | ||
{{: | {{: | ||
Zeile 256: | Zeile 273: | ||
<code java> timer1.start();</ | <code java> timer1.start();</ | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ==== JTable ==== | ||
+ | {{: | ||
+ | |||
+ | Set the number of columns and rows with the attributes // | ||
+ | |||
+ | With the method // | ||
+ | |||
+ | Example: " | ||
+ | |||
+ | <code java> | ||
+ | int i = jTabelle.getSelectedRow(); | ||
+ | jTabelle.setValueAt(" | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
en/gui-usage.txt · Zuletzt geändert: 2022/09/02 10:20 von 127.0.0.1