This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Grid header for JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Grid header for JTable" Watch "Grid header for JTable" New topic
Author

Grid header for JTable

Zach Donovan
Greenhorn

Joined: May 10, 2006
Posts: 8
How do i create a grid header on the top left corner of a jtable?
Clicking on it will highlight every cell in the jtable.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Zach Donovan
Greenhorn

Joined: May 10, 2006
Posts: 8
Thanks Craig for the fast reply...thats exactly what i need

Cheers
Zach Donovan
Greenhorn

Joined: May 10, 2006
Posts: 8
Hi,

is there another way of highlighting...instead of selecting every cell
i just want to highlight them, not selecting all?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Zach Donovan
Greenhorn

Joined: May 10, 2006
Posts: 8
Hi Craig,

if i want individual cell selection to work, i set table.setCellSelectionEnabled(true);

in this case the selection of the whole grid doesn't work anymore.

how do i make it work?

thanks in advance.
cheers
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Grid header for JTable
 
Similar Threads
JTable
JTable
JTable
Prettying up JTable
JTable