This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Can I have listener on the table header? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can I have listener on the table header?" Watch "Can I have listener on the table header?" New topic
Author

Can I have listener on the table header?

Samuel Chan
Greenhorn

Joined: Jun 10, 2001
Posts: 20
I want to have some event when the user click on the table header.
Any idea?
Thanks.
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Samuel,
Yes, some idea. Replace MouseMotion with MouseClicked and you have a great example.

Enjoy,
Manfred.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can I have listener on the table header?