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 18:23] – [Canvas] roehner | en:gui-usage [2015/01/02 12:40] – [JMenu] roehner | ||
---|---|---|---|
Zeile 215: | Zeile 215: | ||
The turtle which belongs to the Java-Editor is an example of a Canvas-subclass.\\ | The turtle which belongs to the Java-Editor is an example of a Canvas-subclass.\\ | ||
+ | ---- | ||
+ | |||
+ | ==== Turtle ==== | ||
+ | {{: | ||
+ | |||
+ | The Turtle-component provides a drawing-area, | ||
+ | |||
+ | As a didactic reduction the turtle has a // | ||
+ | |||
+ | Example: | ||
+ | {{: | ||
+ | |||
+ | The Turtle and it's documentation must be installed inside des Java-Editor configuration. | ||
+ | |||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ==== JMenuBar ==== | ||
+ | {{: | ||
+ | |||
+ | With a JMenuBar-component you can create a menu bar. The configuration is done via the menus (JMenu-components) | ||
+ | to be displayed in the menu bar. | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ==== JMenu ==== | ||
+ | {{: | ||
+ | |||
+ | 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 (e. g. New, Open, Save, Print, Exit) at the // | ||
+ | |||
+ | 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. | ||
+ | |||
+ | \\ | ||
---- | ---- | ||
==== JTable ==== | ==== JTable ==== |
en/gui-usage.txt · Zuletzt geändert: 2022/09/02 10:20 von 127.0.0.1