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

    Default saving jtable column settings

    I have a JTable that's sortable and resizable. I like to save the column widths and the indexes of columns that is sorted and in what order. How do I do that?
    Thanks!

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default

    The TableColumnModel contains the TableColumns which contains the width of the colum.

    The DefaultRowSorter contains a method to get the current sort keys.

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

    Default

    Thanks! I think I still need some help with the sort...

    I found that table..getRowSorter().getSortKeys will return the list of sort keys, but what is the format of this "list of sort keys"?

    Thanks.

  4. #4
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default

    What does the API tell you is in the List?

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

Similar Threads

  1. Saving Jtable settings
    By new2java2009 in forum New To Java
    Replies: 1
    Last Post: 03-18-2010, 08:42 PM
  2. split a jtable column
    By anilkumar_vist in forum Advanced Java
    Replies: 0
    Last Post: 12-14-2009, 10:29 AM
  3. split jtable column
    By anilkumar_vist in forum Advanced Java
    Replies: 3
    Last Post: 11-30-2009, 02:14 PM
  4. How to sort column in JTable
    By johnt in forum AWT / Swing
    Replies: 3
    Last Post: 06-14-2008, 05:48 AM
  5. Saving application settings
    By mwildam in forum New To Java
    Replies: 0
    Last Post: 11-16-2007, 02:30 PM

Posting Permissions

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