CO bude dělat následující kód? Kde je dobré ho používat na rozdíl od kódu?
class pokus extends JPanel{
public void paintComponent(Graphics g){
super.paintComponent(g)
g.fillRect(10, 10, 10, 10);
}
}
public void render(Graphics g){
g.fillRect(10, 10 ,10 ,10)
}
// někde by byla smička s repaint().
TIP: Přetáhni ikonu na hlavní panel pro připnutí webu



Nahlásit jako SPAM
IP: 194.12.42.–
Grafoman
Zjistit počet nových příspěvků
































