A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
idea on how to sort a jtable header with 2 labels
Joined: Aug 18, 2009
Jul 21, 2010 03:31:44
hi all. i need advice on how to go about a jtable with a column header having 2 labels (i made a custom header renderer) that when clicking any of those 2 will initiate a sort
my requirement is that i do not have to put them as separate columns so 1 column with 2 labels (col1 and col2) have values in each cell represented as col1value - col2value
also, is there a quick way in the api where the arrow sort icon functionality can be embedded within those 2 label headers?
please refer to image attach to see how my header looks like
any ideas? thank you
Joined: May 03, 2008
Jul 21, 2010 04:40:43
To get better help sooner, post a
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: idea on how to sort a jtable header with 2 labels
JTable Column header
boldfacing the header of a column in a JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014