Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- shapes = new ShapesContainer();
- frame = new ShapesFrame(shapes);
- addShapes();
- frame.setVisible(true);
- int j=shapes.getShapesNum();
- for (int i=0;i<j+1;i++){
- try
- {
- Thread.sleep(1000);
- }catch (InterruptedException ie)
- {}
- shapes.remove(0);
- frame.repaint();
- }
- }
Add Comment
Please, Sign In to add comment