Re: Doble click on a JTable
From: Christophe Vanfleteren (c.v4nfl3t3r3n_at_pandora.be)
Date: 07/30/04
- Next message: Alexandr Molochnikov: "Re: Same Java SQL database engine on both client and server make more sense?"
- Previous message: Murray: "Re: Doble click on a JTable"
- In reply to: alexjcasol: "Doble click on a JTable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 21:46:21 GMT
alexjcasol wrote:
> 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.
select * from double_click where is_middle_of_cell = true;
Or you could just try c.l.j.gui instead :)
-- Kind regards, Christophe Vanfleteren
- Next message: Alexandr Molochnikov: "Re: Same Java SQL database engine on both client and server make more sense?"
- Previous message: Murray: "Re: Doble click on a JTable"
- In reply to: alexjcasol: "Doble click on a JTable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|