public class Andmetabel{ String pealkiri; String tulbad; int x, y; int reavahe=20; public Andmetabel(String uPealkiri, String uTulbad, int uX, int uY){ pealkiri=uPealkiri; tulbad=uTulbad; x=uX; y=uY; } public void joonista(java.awt.Graphics g){ int ky=y; ky+=reavahe; g.drawString("Tabel: "+pealkiri, x, ky); String[] m=tulbad.split("\n"); for(int i=0; ix-5 && hxy-5 && hy