Forums Register Login

Mouselistner not working for a table object

+Pie Number of slices to send: Send
Hi all,

I have a JTable object called VTable present in the swing package. For this JTable, none of the listeners gets executed.

The above mouseListener doesnt get executed.

Or do we have to create a view only.

[ EJFH: Everyone thinks their post is urgent, yours no more so than others. ]
[ April 08, 2005: Message edited by: Ernest Friedman-Hill ]
+Pie Number of slices to send: Send
Hi,
You need to add Mouselistener to the table Header.

Try using the below code:

VTable m_table = new VTable(rowData,colNames,false); m_table.getTableHeader().addMouseListener(new java.awt.event.MouseListener(){ public void mouseClicked(MouseEvent e) { System.out.println("TEST!!!"); }

Thanks,
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 690 times.
Similar Threads
JTable ........
JTable
JTable
JTable
JTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:53:42.