Results 1 to 2 of 2
  1. #1
    new2java2009 is offline Member
    Join Date
    Aug 2009
    Rep Power

    Default Saving Jtable settings


    There is a table (Jtable) that's already exists. I like to add a feature that when the table closes, all the table settings are saved (column width, position of each column, which column is sort and which direction etc) into a file. The next time when the table is opened, I can open this file and use these saved settings to contruct the table the exact same way.

    Now my question is: How do I find out these column widths, column positions and which column is sorted and in what order?


  2. #2
    iluxa is offline Senior Member
    Join Date
    Mar 2010
    Rep Power


    Java Code:
    TableColumn column = table.getColumnModel ().getColumn (index);
    column.getWidth ();

Similar Threads

  1. Are the jdk settings neccesary
    By Implode in forum New To Java
    Replies: 4
    Last Post: 09-01-2009, 12:28 PM
  2. Wrong settings?
    By RonM in forum Eclipse
    Replies: 3
    Last Post: 08-04-2009, 11:35 AM
  3. Avoid using systems DPI settings ?
    By rolfius in forum AWT / Swing
    Replies: 5
    Last Post: 08-03-2009, 04:12 AM
  4. User settings
    By 3speed in forum New To Java
    Replies: 8
    Last Post: 10-31-2008, 12:53 PM
  5. Saving application settings
    By mwildam in forum New To Java
    Replies: 0
    Last Post: 11-16-2007, 03: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