Results 1 to 3 of 3
  1. #1
    new2java2009 is offline Member
    Join Date
    Aug 2009
    Posts
    60
    Rep Power
    0

    Default Groupable table header - not able to sort

    I used the code in this link for implementing my groupable table headers (with a jxtable). Everything works well except one problem - columns not able to sort. When clicking on a column header, nothing happens. I like to debug but not sure where I should start. I assume there might be some kind of listener in jxtable when clicking on the column headers, correct?

    Can somebody please point me to a direction?

    Groupable(Group) Header Example : Grid Table*«*Swing Components*«*Java

    Thanks!
    Last edited by new2java2009; 07-08-2011 at 09:37 PM.

  2. #2
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    If you post your code if would help us to help you. We don't know what you're doing wrong if you don't show us.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

  3. #3
    new2java2009 is offline Member
    Join Date
    Aug 2009
    Posts
    60
    Rep Power
    0

    Default

    I copied and pasted everything from the following link. So my code is basically everything in the following link. Except I use a jxtable, not jtable. I just assume that jxtable support build-in sort.

    When I grouble the columns, sorting is disabled. When I don't group them, sorting is fine. I looked into the sorting attribute, it is set to be true.

    Groupable(Group) Header Example : Grid Table*«*Swing Components*«*Java

Similar Threads

  1. Best way to model table with header characters?
    By doa24uk in forum New To Java
    Replies: 1
    Last Post: 07-01-2011, 01:44 PM
  2. Replies: 4
    Last Post: 02-05-2011, 06:47 PM
  3. How to change the height of a table header?
    By Zelord in forum AWT / Swing
    Replies: 2
    Last Post: 12-20-2010, 08:08 PM
  4. DisplayTag Table header styling problem and paging
    By selvi in forum Web Frameworks
    Replies: 1
    Last Post: 08-06-2010, 11:00 AM
  5. DisplayTag Table header styling problem and paging
    By selvi in forum Web Frameworks
    Replies: 0
    Last Post: 08-05-2010, 08:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •