#navi(contents-page-name): No such page: ST

FrontPage

Terai Atsuhiro

2023-07-11 (火) 09:56:08

http://terai.s55.xrea.com/swing/doubleclick/screenshot.png

jtable.addMouseListener(new MouseInputAdapter() {
  public void mouseClicked(final MouseEvent me) {
    int col = jtable.columnAtPoint(me.getPoint());
    if(col==DBLCLICK_COLUMN && me.getClickCount()==2) {
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          int row = jtable.rowAtPoint(me.getPoint());
          String str = getInfo(model.getTest(row));
          JOptionPane.showMessageDialog(

            JOptionPane.INFORMATION_MESSAGE);
        }
      });
      jtable.repaint();
    }else{
      super.mouseClicked(me);
    }
  }
});