jdk/src/share/classes/java/awt/Checkbox.java
changeset 1183 80d6aafba03a
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
1182:9590bc50fe0f 1183:80d6aafba03a
     1 /*
     1 /*
     2  * Copyright 1995-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1995-2008 Sun Microsystems, Inc.  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.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   282                 testvalid = true;
   282                 testvalid = true;
   283             }
   283             }
   284         }
   284         }
   285 
   285 
   286         // This could change the preferred size of the Component.
   286         // This could change the preferred size of the Component.
   287         if (testvalid && valid) {
   287         if (testvalid) {
   288             invalidate();
   288             invalidateIfValid();
   289         }
   289         }
   290     }
   290     }
   291 
   291 
   292     /**
   292     /**
   293      * Determines whether this check box is in the "on" or "off" state.
   293      * Determines whether this check box is in the "on" or "off" state.