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
Next revision
Previous revision
en:gui-usage [2017/04/18 19:58]
roehner [Turtle]
en:gui-usage [2017/07/16 11:14]
roehner [JLabel]
Line 7: Line 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.
-<​html><​img src="​http://​vg08.met.vgwort.de/​na/​0bcd12449ac147d08ba0529b6daeced2"​ width="​1"​ height="​1"​ alt=""><​html>​+<​html><​img src="​http://​vg08.met.vgwort.de/​na/​0bcd12449ac147d08ba0529b6daeced2"​ width="​1"​ height="​1"​ alt=""><​/html>
 \\ \\
 \\ \\
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