How can I call a method by pressing a JButton?
For example:
when JButton is pressed hillClimb() is called;
I know how to display me
You need to add an event handler (ActionListener in Java) to the JButton.
ActionListener
JButton
This article explains how to do this.