Saturday, November 10, 2012

Java Exercise #47: Click Buttons

The problem is to write a GUI with two buttons - OK and Cancel. The program will print that the user has clicked OK/Cancel button on console.

Exercise: Write a program that creates a Frame with OK and Cancel buttons. Program should print on the console which button the user clicked.


Clicked OK Button
Clicked Cancel Button
Clicked OK Button
Clicked OK Button
Clicked Cancel Button
Clicked Cancel Button



Download Code: Click Buttons

No comments:

Post a Comment