import java.awt.*; public class Tervitus3{ public static void main(String[] argumendid){ Frame f=new Frame(); f.setLayout(new GridLayout(1, 2)); f.add(new Ruut1()); f.add(new Ruut1()); f.setSize(200, 200); f.setVisible(true); } }