How to make buttons in JFrame and when clicked on, do something?

Printable View