Java JComponent Width getMinimumWidth(JComponent comp)

Here you can find the source of getMinimumWidth(JComponent comp)

Description

get Minimum Width

License

Open Source License

Parameter

Parameter Description
comp a parameter

Return

comp.getMinimumSize().width

Declaration

public static int getMinimumWidth(JComponent comp) 

Method Source Code

//package com.java2s;
//it under the terms of the GNU Affero General Public License as published by

import javax.swing.JComponent;

public class Main {
    /**/* www  . j  a  v  a  2s.  c o  m*/
     * @param comp
     * @return comp.getMinimumSize().width
     */
    public static int getMinimumWidth(JComponent comp) {
        return comp.getMinimumSize().width;
    }
}

Related

  1. clearWidth(JComponent comp)
  2. clipString(final JComponent component, final String string, final int avaiableWidth)
  3. clipStringifNeeded(final JComponent component, final String string, final int avaiableWidth)
  4. createTitledPanel(JComponent component, String title, int width, int height)
  5. fixWidth(JComponent c, int width)
  6. getRectangle(JComponent comp)
  7. getRectangle(JComponent comp)
  8. initComponent(JComponent component, String title, int width, int height)
  9. makeEqualWidth(JComponent... components)