Java JComponent Size setSMPSizes(JComponent comp, Dimension d)

Here you can find the source of setSMPSizes(JComponent comp, Dimension d)

Description

set SMP Sizes

License

Open Source License

Declaration

public static final void setSMPSizes(JComponent comp, Dimension d) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.Dimension;
import javax.swing.JComponent;

public class Main {
    public static final void setSMPSizes(JComponent comp, Dimension d) {
        comp.setSize(d);/*from w  ww.  j  a v a2 s  . com*/
        comp.setMinimumSize(d);
        comp.setPreferredSize(d);
    }
}

Related

  1. setSize(JComponent componenet, Dimension dimension)
  2. setSize(JComponent component, int width, int height)
  3. setSize(JComponent conponent, int width, int height)
  4. setSizeBasedOnResolution(final JComponent component)
  5. setSizes(JComponent[] components, final Dimension dimension)
  6. setUnlimitedSize(JComponent component)
  7. setZeroMinimumSize(Component component)
  8. show(final JComponent component, final String windowTitle, final Dimension size)
  9. showComponent(JComponent component, Dimension size)