Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

idea on how to sort a jtable header with 2 labels

 
mark goking
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
sample.jpg
[Thumbnail for sample.jpg]
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic