src/share/classes/sun/tools/jconsole/VariableGridLayout.java

Print this page
rev 5340 : 7017818: NLS: JConsoleResources.java cannot be handled by translation team
Reviewed-by: duke


   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.tools.jconsole;
  27 
  28 import java.awt.*;
  29 import java.util.*;
  30 
  31 import javax.swing.*;
  32 
  33 @SuppressWarnings("serial")
  34 public class VariableGridLayout extends GridLayout {
  35 
  36     private boolean fillRows, fillColumns;
  37 
  38     public VariableGridLayout(int rows, int cols,
  39                               int hgap, int vgap,
  40                               boolean fillRows, boolean fillColumns) {
  41         super(rows, cols, hgap, vgap);
  42 
  43         this.fillRows    = fillRows;
  44         this.fillColumns = fillColumns;
  45     }
  46 
  47     public void setFillRow(JComponent c, boolean b) {
  48         c.putClientProperty("VariableGridLayout.fillRow", b);
  49     }




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.tools.jconsole;
  27 
  28 import java.awt.*;

  29 
  30 import javax.swing.*;
  31 
  32 @SuppressWarnings("serial")
  33 public class VariableGridLayout extends GridLayout {
  34 
  35     private boolean fillRows, fillColumns;
  36 
  37     public VariableGridLayout(int rows, int cols,
  38                               int hgap, int vgap,
  39                               boolean fillRows, boolean fillColumns) {
  40         super(rows, cols, hgap, vgap);
  41 
  42         this.fillRows    = fillRows;
  43         this.fillColumns = fillColumns;
  44     }
  45 
  46     public void setFillRow(JComponent c, boolean b) {
  47         c.putClientProperty("VariableGridLayout.fillRow", b);
  48     }