Tabnine Logo
IconBorder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jdesktop.swingx.border.IconBorder
constructor

Best Java code snippets using org.jdesktop.swingx.border.IconBorder.<init> (Showing top 7 results out of 315)

origin: stackoverflow.com

 Border border = new CompoundBorder(textField.getBorder(), new IconBorder(...));
textField.setBorder( border );
origin: com.github.insubstantial/substance-swingx

  private Border getTitleBorder() {
    if (monthView.isTraversable()) {
      IconBorder up = new IconBorder(monthUpImage,
          SwingConstants.EAST, monthView.getBoxPaddingX());
      IconBorder down = new IconBorder(monthDownImage,
          SwingConstants.WEST, monthView.getBoxPaddingX());
      Border compound = BorderFactory.createCompoundBorder(up, down);
      Border empty = BorderFactory
          .createEmptyBorder(2 * monthView.getBoxPaddingY(), 0,
              2 * monthView.getBoxPaddingY(), 0);
      return BorderFactory.createCompoundBorder(compound, empty);
    }
    return BorderFactory.createEmptyBorder(monthView.getBoxPaddingY(),
        monthView.getBoxPaddingX(), monthView.getBoxPaddingY(),
        monthView.getBoxPaddingX());
  }
}
origin: org.codehaus.jtstand/jtstand-desktop

/**
 * @return
 */
private Border getTitleBorder() {
  if (getComponent().isTraversable()) {
    Icon downIcon = UIManager.getIcon("JXMonthView.monthDownFileName");
    Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");
    // fix for #1028-swingx: title border whacky for boxpadding 0
    // in fact there had been a deeper issue - without using the arrowPadding here
    // the hit-detection of the buttons is slightly off target
    IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX); 
    IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX); 
    Border compound = BorderFactory.createCompoundBorder(up, down);
    Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
    return BorderFactory.createCompoundBorder(compound, empty);
  }
  
  return BorderFactory.createEmptyBorder(getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX(), getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX());
}
origin: org.swinglabs.swingx/swingx-core

/**
 * @return
 */
private Border getTitleBorder() {
  if (getComponent().isTraversable()) {
    Icon downIcon = UIManager.getIcon("JXMonthView.monthDownFileName");
    Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");
    // fix for #1028-swingx: title border whacky for boxpadding 0
    // in fact there had been a deeper issue - without using the arrowPadding here
    // the hit-detection of the buttons is slightly off target
    IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX); 
    IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX); 
    Border compound = BorderFactory.createCompoundBorder(up, down);
    Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
    return BorderFactory.createCompoundBorder(compound, empty);
  }
  
  return BorderFactory.createEmptyBorder(getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX(), getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX());
}
origin: org.swinglabs.swingx/swingx-all

/**
 * @return
 */
private Border getTitleBorder() {
  if (getComponent().isTraversable()) {
    Icon downIcon = UIManager.getIcon("JXMonthView.monthDownFileName");
    Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");
    // fix for #1028-swingx: title border whacky for boxpadding 0
    // in fact there had been a deeper issue - without using the arrowPadding here
    // the hit-detection of the buttons is slightly off target
    IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX); 
    IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX); 
    Border compound = BorderFactory.createCompoundBorder(up, down);
    Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
    return BorderFactory.createCompoundBorder(compound, empty);
  }
  
  return BorderFactory.createEmptyBorder(getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX(), getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX());
}
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * @return
 */
private Border getTitleBorder() {
  if (getComponent().isTraversable()) {
    Icon downIcon = UIManager.getIcon("JXMonthView.monthDownFileName");
    Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");
    // fix for #1028-swingx: title border whacky for boxpadding 0
    // in fact there had been a deeper issue - without using the arrowPadding here
    // the hit-detection of the buttons is slightly off target
    IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX); 
    IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX); 
    Border compound = BorderFactory.createCompoundBorder(up, down);
    Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
    return BorderFactory.createCompoundBorder(compound, empty);
  }
  
  return BorderFactory.createEmptyBorder(getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX(), getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX());
}
origin: com.haulmont.thirdparty/swingx-core

/**
 * @return
 */
private Border getTitleBorder() {
  if (getComponent().isTraversable()) {
    Icon downIcon = UIManager.getIcon("JXMonthView.monthDownFileName");
    Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");
    // fix for #1028-swingx: title border whacky for boxpadding 0
    // in fact there had been a deeper issue - without using the arrowPadding here
    // the hit-detection of the buttons is slightly off target
    IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX); 
    IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX); 
    Border compound = BorderFactory.createCompoundBorder(up, down);
    Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
    return BorderFactory.createCompoundBorder(compound, empty);
  }
  
  return BorderFactory.createEmptyBorder(getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX(), getComponent().getBoxPaddingY(), getComponent().getBoxPaddingX());
}
org.jdesktop.swingx.borderIconBorder<init>

Javadoc

Creates an IconBorder with an empty icon in a trailing position with a padding of 4.

Popular methods of IconBorder

  • 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).
  • setPadding
    Sets the padding around the icon.

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ImageIO (javax.imageio)
  • Top 12 Jupyter Notebook extensions
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