craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > Events/Actions Post New Topic   Post A Reply
Problems adding a mouseListner printer friendly version
next newest post | next oldest post
Author Messages
stefanasemota
Unregistered
Edit or delete this message Reply w/Quote
Posted Saturday, August 27, 2005 @ 09:07:46  

Good day

Well I find the quick table wonderful. It is easy to use. I just have
problems add a mouse-Listener to the quick table. My idea was :
dBTable1.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
//Activates the open button.
btInfo.setEnabled(true);
String s =
(String.valueOf(dBTable1.getValueAt(MainUtilities.this.dBTable1.getSelec
tedRow(),1)));
}});

... but it does not seem to work!!

I would be great-full for any help

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Saturday, August 27, 2005 @ 09:12:17  

Instead of dBTable1.addMouseListener, use

dBTable1.getTable().addMouseListener because you need to to add the listeners to JTable.

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios