Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void check()
- {
- int bar = 10; // Number of bars to be displayed.
- if (quitButton.isInside(lastX, lastY)) {
- System.out.println("\nI hope you had fun!\n");
- System.exit(0); // Nothing more to do
- }
- else if (randomButton.isInside(lastX, lastY)) {
- element.setValue( (int)(1 + 10*Math.random()) );
- element.setColor( Color.yellow );
- for(int count = 0; count < bar; ++count) { // This makes the items.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement