Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2006

Tip: Looking for answers? Try searching our database.

Table Headers

Thread view: 
freesoft_2000 - 21 Jun 2006 20:10 GMT
Hi everyone,

            I have a rather silly question but please bear with me for a
while.

            What is the interface(not the mouse listener) i must overide
to find out whether a user has clicked a table header. Also is there a way
to change a table header heading once it is already displayed.

I hope someone can help me with this problem

Thank you

Yours Sincerely

Richard West
Chris Smith - 22 Jun 2006 19:59 GMT
>              What is the interface(not the mouse listener) i must overide
> to find out whether a user has clicked a table header. Also is there a way
> to change a table header heading once it is already displayed.

I don't know what you mean by "not the mouse listener".  You would us
myTable.getTableHeader().addMouseListener(...), which does require that
you implement the MouseListener class in the object that you pass in.  
You may then use myTable.getTableHeader.columnAtPoint(...) to determine
which column of the header was clicked.  Does this not meet your needs?

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.