Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int selRow = myTaskTable.getSelectedRow();
- ...
- myTaskTable.addMouseListener(this);
- ...
- public void mouseClicked(MouseEvent e)
- {
- if(e.getModifiers() == MouseEvent.BUTTON1_MASK)
- {
- if(e.getClickCount() == 2)
- {
- e.consume();
- int selRow = myTaskTable.getSelectedRow();
- System.out.println("GridReport double clicked on row="+selRow);
- }
- }
- }
- final int selectedRowIndex = table.rowAtPoint(mouseEvent.getPoint());
- // If the rows are sorted or filtered
- final int modelRowIndex = table.convertRowIndexToModel(selectedRowIndex);
- public void mouseClicked(MouseEvent e){
- if(e.getModifiers() == MouseEvent.BUTTON1_MASK){
- if(e.getClickCount() == 2){
- int selRow = myTaskTable.getSelectedRow();
- System.out.println("GridReport double clicked on row="+selRow);
- e.consume();
- }
- }
- }
Add Comment
Please, Sign In to add comment