title: org.eclipse.swt.widgets.Button click from code
body: <p>I am trying to click Button from code. I am tying to do the following:</p>
  
  <pre><code>class MyMouseAdapter extends MouseAdapter
  {
      public void mouseDown(MouseEvent evt) 
      {
         System.out.println("Working!!!!");
      }
  }
  Button button = new Button();
  button.addMouseListener(new MyMouseAdapter());
  </code></pre>
  
  <p>now I want to run the mouseDown method from code could you tell me how to do it?</p>
  
  <p>Thank you.</p>