package gy2balls;

import java.awt.BorderLayout;
import javax.swing.JFrame;

public class Main {

    public static final int sleepInterval = 20;

    public  void run() {
        JFrame f = new JFrame("labda");
        f.setSize(600,400);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        f.setLayout(new BorderLayout());
        BallPanel lp = new BallPanel(f);
        f.getContentPane().add(lp, BorderLayout.CENTER);
        lp.startThreads();
    }

}
