Disable Button

This is a small application utilizing JFrames that I created for my Java class. The program creates a new frame with a button on it labeled “Click Me!”. After the user clicks the button 8 times it becomes disabled and a label appears saying “That’s Enough!”.

Click to view code

Screen Shot 2015-12-22 at 9.58.47 PM

Screen Shot 2015-12-22 at 9.58.57 PM