/[classpath]/classpath/java/awt/GridLayout.java
ViewVC logotype

Diff of /classpath/java/awt/GridLayout.java

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

revision 1.9 by mkoch, Wed Oct 2 12:58:39 2002 UTC revision 1.10 by tromey, Sun Nov 10 17:35:58 2002 UTC
# Line 245  public class GridLayout implements Layou Line 245  public class GridLayout implements Layou
245     */     */
246    public void setColumns (int newCols)    public void setColumns (int newCols)
247    {    {
248      if (cols < 0)      if (newCols < 0)
249        throw new IllegalArgumentException ("number of columns cannot be negative");        throw new IllegalArgumentException ("number of columns cannot be negative");
250      if (newCols == 0 && rows == 0)      if (newCols == 0 && rows == 0)
251        throw new IllegalArgumentException ("number of rows is already 0");        throw new IllegalArgumentException ("number of rows is already 0");
# Line 271  public class GridLayout implements Layou Line 271  public class GridLayout implements Layou
271     */     */
272    public void setRows (int newRows)    public void setRows (int newRows)
273    {    {
274      if (rows < 0)      if (newRows < 0)
275        throw new IllegalArgumentException ("number of rows cannot be negative");        throw new IllegalArgumentException ("number of rows cannot be negative");
276      if (newRows == 0 && cols == 0)      if (newRows == 0 && cols == 0)
277        throw new IllegalArgumentException ("number of columns is already 0");        throw new IllegalArgumentException ("number of columns is already 0");

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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