/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package andmevahetus; import javax.swing.*; import java.awt.*; /** * * @author Opetaja */ public class Proov1 { public static void main(String[] arg){ JFrame f=new JFrame(); JPanel p=new JPanel(new GridLayout(2, 1)); f.getContentPane().add(p); p.add(new RingideRittaJoonistaja(2)); p.add(new RingideRittaJoonistaja(5)); f.setVisible(true); f.setSize(400, 500); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }