Ver originalprivate static final MouseListener listener0 = new MouseListener() { public void mouseReleased(MouseEvent e) { } public void mousePressed(MouseEvent e) { } public void mouseClicked(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } }; JPanel myJp = new JPanel();myJp.addMouseListener(listener0);