This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help about Row Headers in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help about Row Headers in Swing" Watch "Help about Row Headers in Swing" New topic

Help about Row Headers in Swing

Paul McKenna
Ugly Redneck
Ranch Hand

Joined: Jul 08, 2000
Posts: 1006
Hi everybody!
I need to develop a swing applet which has a row header that behaves and functions similar to the row headers found in MS Access. That is, on clicking the row header against any of the rows, the entire row should be highlighted. This is urgent and I'd be pleased if someone could reply soon.. thanks..
Thanks in advance

Commentary From the Sidelines of history
Nathanael Ulrick

Joined: Jul 17, 2001
Posts: 22
JTable.setColumnSelectionAllowed(boolean) toggles exactly what it says.
Then it's simply a matter of adding a mouse listener to the table header which figures out which column header was clicked and selecting the appropriate column.
The TableSorter example from the Java tutorial gives an example of listening to a table header.
Meghna ks
Ranch Hand

Joined: Mar 15, 2001
Posts: 122
This link deals with some of the rowheader stuff. Hope this helps !!!
I agree. Here's the link:
subject: Help about Row Headers in Swing
It's not a secret anymore!