You don't call .java files. You call methods in classes or create a new instance of a class.

To use a button press, you add a listener to the button.