Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.     private void check()
  2.     {
  3.         int bar = 10;   //  Number of bars to be displayed.
  4.         if (quitButton.isInside(lastX, lastY)) {
  5.             System.out.println("\nI hope you had fun!\n");
  6.             System.exit(0);                 //  Nothing more to do
  7.         }
  8.  
  9.         else if (randomButton.isInside(lastX, lastY)) {
  10.             element.setValue( (int)(1 + 10*Math.random()) );
  11.             element.setColor( Color.yellow );
  12.             for(int count = 0; count < bar; ++count) { // This makes the items.
  13.                      }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement