Guest User

Untitled

a guest
May 26th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1.     public static void main(String[] args) {
  2.                
  3.         shapes = new  ShapesContainer();
  4.         frame = new ShapesFrame(shapes);
  5.        
  6.         addShapes();
  7.        
  8.         frame.setVisible(true);
  9.         int j=shapes.getShapesNum();
  10.         for (int i=0;i<j+1;i++){
  11.         try
  12.           {
  13.           Thread.sleep(1000);  
  14.          
  15.           }catch (InterruptedException ie)
  16.           {}
  17.          
  18.           shapes.remove(0);
  19.           frame.repaint();
  20.         }
  21.          
  22.     }
Add Comment
Please, Sign In to add comment