public void mouseClicked(MouseEvent e) 
{
// TODO: Add your code here
if (e.getButton()==1)/
{
if (e.getClickCount()==2)
{                            }
          }


}

解决方案 »

  1.   

    public void mouseClicked(MouseEvent e) 
    {
    // TODO: Add your code here
    if (e.getSource()=="你的button")/
    {
    if (e.getClickCount()==2)
    {                            }
              }


    }
      

  2.   

    public void mouseClicked(MouseEvent evt){
              if(evt.getClickCount() == 2){
                 //your event
              }
    }