import javax.swing.*; import java.awt.event.*; import java.awt.*; public class Joonis2 extends JPanel { int vasakserv=10; int ylaserv=40; int ruudusuurus=30; int veergudearv=8; int ridadearv=8; public void paintComponent(Graphics g){ super.paintComponent(g); //Kutsu välja JPaneli sama käsklus for(int rida=0; rida