User Tools

Site Tools


en:gui-usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
en:gui-usage [2017/04/18 19:58]
roehner [Turtle]
en:gui-usage [2017/04/18 19:58]
roehner [Canvas]
Line 214: Line 214:
 If you minimize your Java-Application with a Canvas-component und show it up again, the content of the Canvas-Component is lost. To avoid this, you have to create a subclass from Canvas and do the drawing in the //​paint(Graphics g)// method. Such a derived class can be placed in a GUI-form with right-click on the Canvas-Symbol. If you minimize your Java-Application with a Canvas-component und show it up again, the content of the Canvas-Component is lost. To avoid this, you have to create a subclass from Canvas and do the drawing in the //​paint(Graphics g)// method. Such a derived class can be placed in a GUI-form with right-click on the Canvas-Symbol.
  
- 
-The turtle which belongs to the Java-Editor is an example of a Canvas-subclass.\\ 
 ---- ----
  
en/gui-usage.txt ยท Last modified: 2017/07/16 11:14 by roehner