jdk/src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java
changeset 29894 3e16b51732f5
parent 26353 b5e3b7fbf56d
equal deleted inserted replaced
29893:fb1610d0d75a 29894:3e16b51732f5
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   312         fireTableChanged(event);
   312         fireTableChanged(event);
   313     }
   313     }
   314 
   314 
   315     /**
   315     /**
   316      * Obsolete as of Java 2 platform v1.3.  Please use <code>setRowCount</code> instead.
   316      * Obsolete as of Java 2 platform v1.3.  Please use <code>setRowCount</code> instead.
   317      */
       
   318     /*
       
   319      *  Sets the number of rows in the model.  If the new size is greater
       
   320      *  than the current size, new rows are added to the end of the model
       
   321      *  If the new size is less than the current size, all
       
   322      *  rows at index <code>rowCount</code> and greater are discarded.
       
   323      *
       
   324      * @param   rowCount   the new number of rows
   317      * @param   rowCount   the new number of rows
   325      * @see #setRowCount
       
   326      */
   318      */
   327     public void setNumRows(int rowCount) {
   319     public void setNumRows(int rowCount) {
   328         int old = getRowCount();
   320         int old = getRowCount();
   329         if (old == rowCount) {
   321         if (old == rowCount) {
   330             return;
   322             return;