/[classpath]/classpath/javax/swing/JTable.java
ViewVC logotype

Diff of /classpath/javax/swing/JTable.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by trebligd, Tue Jul 5 20:17:14 2005 UTC revision 1.33 by trebligd, Wed Jul 6 08:01:39 2005 UTC
# Line 1421  public class JTable extends JComponent Line 1421  public class JTable extends JComponent
1421    }    }
1422    
1423    /**    /**
1424     * Set the value of the {@link #autoCreateColumnsFromModel} property.     * Set the value of the {@link #autoCreateColumnsFromModel} flag.  If the
1425       * flag changes from <code>false</code> to <code>true</code>, the
1426       * {@link #createDefaultColumnsFromModel()} method is called.
1427     *     *
1428     * @param a The new value of the autoCreateColumnsFromModel property     * @param autoCreate  the new value of the flag.
1429     */     */
1430    public void setAutoCreateColumnsFromModel(boolean a)    public void setAutoCreateColumnsFromModel(boolean autoCreate)
1431    {    {
1432      autoCreateColumnsFromModel = a;      if (autoCreateColumnsFromModel != autoCreate)
1433        {
1434          autoCreateColumnsFromModel = autoCreate;
1435          if (autoCreate)
1436            createDefaultColumnsFromModel();
1437        }
1438    }    }
1439    
1440    /**    /**

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26