Which event occurs when a user doubleclicks on a JTable row?

Greg James

There is no special event for this, but you can listen for a MouseEvent as follows:


someJTable.addMouseListener(new MouseAdapter() {
  public void mouseClicked(MouseEvent e) {
    if (e.getClickCount() == 2) {
      //do something
    }
  }});
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact