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

    Default Saving Jtable settings

    Hi,

    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?

    Thanks!

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

    Default

    Try
    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, 11:28 AM
  2. Wrong settings?
    By RonM in forum Eclipse
    Replies: 3
    Last Post: 08-04-2009, 10:35 AM
  3. Avoid using systems DPI settings ?
    By rolfius in forum AWT / Swing
    Replies: 5
    Last Post: 08-03-2009, 03:12 AM
  4. User settings
    By 3speed in forum New To Java
    Replies: 8
    Last Post: 10-31-2008, 11:53 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
  •