Doble click on a JTable
From: alexjcasol (alexjcasol_at_tiscalinet.it)
Date: 07/30/04
- Previous message: kaeli: "Re: Advice re: web-based development tools"
- Next in thread: Murray: "Re: Doble click on a JTable"
- Reply: Murray: "Re: Doble click on a JTable"
- Reply: Christophe Vanfleteren: "Re: Doble click on a JTable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: kaeli: "Re: Advice re: web-based development tools"
- Next in thread: Murray: "Re: Doble click on a JTable"
- Reply: Murray: "Re: Doble click on a JTable"
- Reply: Christophe Vanfleteren: "Re: Doble click on a JTable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]