congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IconBorder.setPadding
Code IndexAdd Tabnine to your IDE (free)

How to use
setPadding
method
in
org.jdesktop.swingx.border.IconBorder

Best Java code snippets using org.jdesktop.swingx.border.IconBorder.setPadding (Showing top 5 results out of 315)

origin: org.swinglabs.swingx/swingx-core

/**
 * Creates an {@code IconBorder} with the specified constraints. If
 * {@code validIcon} is {@code null}, {@code EMPTY_ICON} is used instead.
 * If {@code padding} is negative, then the border does not use padding.
 * 
 * @param validIcon
 *            the icon to set. This may be {@code null} to represent an
 *            empty icon.
 * @param iconPosition
 *            the position to place the icon relative to the component
 *            contents. This must be one of the following
 *            {@code SwingConstants}:
 *            <ul>
 *            <li>{@code LEADING}</li>
 *            <li>{@code TRAILING}</li>
 *            <li>{@code EAST}</li>
 *            <li>{@code WEST}</li>
 *            </ul>
 * @param padding
 *            the padding to surround the icon with. All non-positive values
 *            set the padding to 0.
 * @throws IllegalArgumentException
 *             if {@code iconPosition} is not a valid position.
 * @see #EMPTY_ICON
 */
public IconBorder(Icon validIcon, int iconPosition, int padding) {
  setIcon(validIcon);
  setPadding(padding);
  setIconPosition(iconPosition);
}
origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Creates an {@code IconBorder} with the specified constraints. If
 * {@code validIcon} is {@code null}, {@code EMPTY_ICON} is used instead.
 * If {@code padding} is negative, then the border does not use padding.
 * 
 * @param validIcon
 *            the icon to set. This may be {@code null} to represent an
 *            empty icon.
 * @param iconPosition
 *            the position to place the icon relative to the component
 *            contents. This must be one of the following
 *            {@code SwingConstants}:
 *            <ul>
 *            <li>{@code LEADING}</li>
 *            <li>{@code TRAILING}</li>
 *            <li>{@code EAST}</li>
 *            <li>{@code WEST}</li>
 *            </ul>
 * @param padding
 *            the padding to surround the icon with. All non-positive values
 *            set the padding to 0.
 * @throws IllegalArgumentException
 *             if {@code iconPosition} is not a valid position.
 * @see #EMPTY_ICON
 */
public IconBorder(Icon validIcon, int iconPosition, int padding) {
  setIcon(validIcon);
  setPadding(padding);
  setIconPosition(iconPosition);
}
origin: com.haulmont.thirdparty/swingx-core

/**
 * Creates an {@code IconBorder} with the specified constraints. If
 * {@code validIcon} is {@code null}, {@code EMPTY_ICON} is used instead.
 * If {@code padding} is negative, then the border does not use padding.
 * 
 * @param validIcon
 *            the icon to set. This may be {@code null} to represent an
 *            empty icon.
 * @param iconPosition
 *            the position to place the icon relative to the component
 *            contents. This must be one of the following
 *            {@code SwingConstants}:
 *            <ul>
 *            <li>{@code LEADING}</li>
 *            <li>{@code TRAILING}</li>
 *            <li>{@code EAST}</li>
 *            <li>{@code WEST}</li>
 *            </ul>
 * @param padding
 *            the padding to surround the icon with. All non-positive values
 *            set the padding to 0.
 * @throws IllegalArgumentException
 *             if {@code iconPosition} is not a valid position.
 * @see #EMPTY_ICON
 */
public IconBorder(Icon validIcon, int iconPosition, int padding) {
  setIcon(validIcon);
  setPadding(padding);
  setIconPosition(iconPosition);
}
origin: org.swinglabs.swingx/swingx-all

/**
 * Creates an {@code IconBorder} with the specified constraints. If
 * {@code validIcon} is {@code null}, {@code EMPTY_ICON} is used instead.
 * If {@code padding} is negative, then the border does not use padding.
 * 
 * @param validIcon
 *            the icon to set. This may be {@code null} to represent an
 *            empty icon.
 * @param iconPosition
 *            the position to place the icon relative to the component
 *            contents. This must be one of the following
 *            {@code SwingConstants}:
 *            <ul>
 *            <li>{@code LEADING}</li>
 *            <li>{@code TRAILING}</li>
 *            <li>{@code EAST}</li>
 *            <li>{@code WEST}</li>
 *            </ul>
 * @param padding
 *            the padding to surround the icon with. All non-positive values
 *            set the padding to 0.
 * @throws IllegalArgumentException
 *             if {@code iconPosition} is not a valid position.
 * @see #EMPTY_ICON
 */
public IconBorder(Icon validIcon, int iconPosition, int padding) {
  setIcon(validIcon);
  setPadding(padding);
  setIconPosition(iconPosition);
}
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Creates an {@code IconBorder} with the specified constraints. If
 * {@code validIcon} is {@code null}, {@code EMPTY_ICON} is used instead.
 * If {@code padding} is negative, then the border does not use padding.
 * 
 * @param validIcon
 *            the icon to set. This may be {@code null} to represent an
 *            empty icon.
 * @param iconPosition
 *            the position to place the icon relative to the component
 *            contents. This must be one of the following
 *            {@code SwingConstants}:
 *            <ul>
 *            <li>{@code LEADING}</li>
 *            <li>{@code TRAILING}</li>
 *            <li>{@code EAST}</li>
 *            <li>{@code WEST}</li>
 *            </ul>
 * @param padding
 *            the padding to surround the icon with. All non-positive values
 *            set the padding to 0.
 * @throws IllegalArgumentException
 *             if {@code iconPosition} is not a valid position.
 * @see #EMPTY_ICON
 */
public IconBorder(Icon validIcon, int iconPosition, int padding) {
  setIcon(validIcon);
  setPadding(padding);
  setIconPosition(iconPosition);
}
org.jdesktop.swingx.borderIconBordersetPadding

Javadoc

Sets the padding around the icon.

Popular methods of IconBorder

  • <init>
    Creates an IconBorder with the specified constraints. If validIcon is null, EMPTY_ICON is used inste
  • bidiDecodeLeadingTrailing
    Returns EAST or WEST depending on the ComponentOrientation and the given postion LEADING/TRAILING th
  • isValidPosition
  • setIcon
    Sets the icon for this border.
  • setIconPosition
    Sets the position to place the icon (relative to the component contents).

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now