title: Java Mouse Event - MouseClicked works fine but MousePressed and MouseReleased don't
body: <p>I try to handle MousePressed event in class A, which extends from abstract class B and implements interface C, but I only handle MouseClicked, MousePressed does not work</p>
  
  <p>interface C</p>
  
  <pre><code>    public interface C {
  
      public void setText(String msg, Dimension d);
  
      public void setVisible(boolean b);
  
      public boolean isVisible();
  
      public Dimension getSize();
  
      public void setLocation(Point p);
  
  }
  </code></pre>
  
  <p>Abstract class B</p>
  
  <pre><code>public abstract class B {
  public B() {
  }
  
  int x, y, w, h, size;
  
  private boolean visible = false;
  
  MouseListener mouseListener = null;
  
  boolean isInner(int p_x, int p_y) {
      ......
  }
  
  public void addMouseListener(MouseListener l) {
      mouseListener = l;
  }
  
  public void setVisible(boolean b) {
      .....
  }
  
  public boolean isVisible() {
      ........
  }
  
  public void repaint() {
      .......
  }
  
  public void setSize(int size) {
      .......
  }
  
  public void setLocation(int x, int y) {
      ........
  }
  
  public Dimension getSize() {
      .......
  }
  
  public Point getLocationOnScreen() {
      .........
  }
  </code></pre>
  
  <p>}</p>
  
  <p>My Class A:</p>
  
  <pre><code>public class A extends B implements C {
  
  private String _text;
  
  private String[] _lines;
  
  private Color _backgroundColor = new Color(255, 255, 192);
  
  private Color _borderColor = new Color(128, 128, 128);
  
  private Color _foreColor = Color.black;
  
  private int _fontSize = 9;
  
  private boolean inner_viewer = false;
  
  private TextLayout textLayout;
  
  private TextLayout _lstTextLayout[];
  
  
  public A(String msg, Dimension d, int fontSize, Color foreColor, Color bkColor, Color borderColor) {
  
      setText(msg, d, fontSize, foreColor, bkColor, borderColor);
  
      inner_viewer = EXE_NAME.equals(D.get_extensionToolCommand());
  
      this.addMouseListener(new MouseListener() {
  
          @Override
          public void mouseReleased(MouseEvent e) {
              System.err.println("Released");
          }
  
          @Override
          public void mousePressed(MouseEvent e) {
              System.err.println("Pressed");
          }
  
          @Override
          public void mouseExited(MouseEvent e) {
              System.err.println("Exited");
          }
  
          @Override
          public void mouseEntered(MouseEvent e) {
              System.err.println("Entered");
          }
  
          @Override
          public void mouseClicked(MouseEvent e) {
              System.err.println("Click");
          }
      });
  }
  
  @Override
  public void setText(String msg, Dimension d, int fontSize, Color foreColor, Color bkColor, Color borderColor) {
      this._fontSize = fontSize;
      this._foreColor = foreColor;
      this._backgroundColor = bkColor;
      this._borderColor = borderColor;
      this._text = msg;
      this.w = d.width;
      this.h = d.height;
      this._lines = _text.split("\n");
      this._lstTextLayout = new TextLayout[_lines.length];
  }
  
  @Override
  public void setLocation(Point p) {
      super.setLocation(p.x, p.y);
  }
  
  public void paint(Graphics g) {
      ................
  }}
  </code></pre>
  
  <p>I don't understand "why only MouseClicked work fine, all of another event of mouse do not work".</p>
  
  <p>thanks for all answer.</p>