Java JComponent Size setUnlimitedSize(JComponent component)

Here you can find the source of setUnlimitedSize(JComponent component)

Description

set Unlimited Size

License

Open Source License

Declaration

public static void setUnlimitedSize(JComponent component) 

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 void setUnlimitedSize(JComponent component) {
        Dimension size = new Dimension(Short.MAX_VALUE, Short.MAX_VALUE);
        component.setMaximumSize(size);/*w  w w.jav  a2  s .com*/
    }
}

Related

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