title: Connect a class to the main class
body: <p>I am very new to java, I have one class ConnectR.java and it has main method, also I have MainApp class which  is the main application. so I want to know If I want to click a button in the MAinApp how can I implement the ConnerR.java Class.
  thank you very mcuh</p>