Doble click on a JTable

From: alexjcasol (alexjcasol_at_tiscalinet.it)
Date: 07/30/04

  • Next message: Murray: "Re: Doble click on a JTable"
    Date: Fri, 30 Jul 2004 12:35:14 -0400
    
    

    Hi all,
    does anyone know how to handle the double click event on a JTable?

    I wrote the following code:

    table.addMouseListener(new MouseAdapter()
    {
            public void mouseClicked(MouseEvent e)
            {
                    if (e.getClickCount() == 2)
                       some_statement;
            }
    });

    but it works only if I click on the lines of the table and it doesn't if
    I click in the middle of a cell.


  • Next message: Murray: "Re: Doble click on a JTable"