Java JComponent Size setSize(Dimension size, JComponent[] components)

Here you can find the source of setSize(Dimension size, JComponent[] components)

Description

set Size

License

Open Source License

Declaration

public static void setSize(Dimension size, JComponent[] components) 

Method Source Code

//package com.java2s;

import java.awt.Dimension;

import java.util.List;

import javax.swing.JComponent;

public class Main {
    public static void setSize(Dimension size, JComponent[] components) {
        for (JComponent component : components) {
            component.setSize(size);//from   ww  w  .ja v  a2 s . co  m
        }
    }

    public static void setSize(Dimension size, List<JComponent> components) {
        for (JComponent component : components) {
            component.setSize(size);
        }
    }
}

Related

  1. setMaximumSize(Dimension d, JComponent... components)
  2. setMaximumSize(Dimension maxComponentSize, JComponent component)
  3. setMaxPreferredSize(JComponent comp)
  4. setMinimumSize(JComponent component, int numChars)
  5. setPreferredSize(JComponent comp, int height, int width)
  6. setSize(final Component component, final int width, final int height)
  7. setSize(JComponent c, int w)
  8. setSize(JComponent comp, int w, int h)
  9. setSize(JComponent componenet, Dimension dimension)