Java JComponent Height setMinimumHeight(JComponent component, int height)

Here you can find the source of setMinimumHeight(JComponent component, int height)

Description

set Minimum Height

License

Open Source License

Declaration

public static JComponent setMinimumHeight(JComponent component, int height) 

Method Source Code


//package com.java2s;
/*//from w  w  w .  ja  v  a 2  s .c  om
(C) 2007 Stefan Reich (jazz@drjava.de)
This source file is part of Project Prophecy.
For up-to-date information, see http://www.drjava.de/prophecy
    
This source file is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, version 2.1.
*/

import javax.swing.*;
import java.awt.*;

public class Main {
    public static JComponent setMinimumHeight(JComponent component, int height) {
        component.setMinimumSize(new Dimension(component.getMinimumSize().width, height));
        return component;
    }
}

Related

  1. normalizeHeight(JComponent... components)
  2. sameHeight(JComponent[] components, int height)
  3. setComponentHeight(JComponent setme, JComponent getme)
  4. setMaxHeightToPreferred(JComponent component)
  5. setMaximumHeight(JComponent comp, int iHeight)
  6. setPreferredHeight(final JComponent component, final int height)
  7. setPreferredHeight(int height, JComponent... components)
  8. setPreferredHeight(JComponent component, int height)
  9. setZeroHeight(JComponent comp)