javax.swing.JButton.getComponentOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中javax.swing.JButton.getComponentOrientation()方法的一些代码示例,展示了JButton.getComponentOrientation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getComponentOrientation()方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:getComponentOrientation

JButton.getComponentOrientation介绍

暂无

代码示例

代码示例来源:origin: com.fifesoft.rtext/fife.common

/**
 * Sets the icon to use for the "forward" button.
 *
 * @param icon The icon to use.  If <code>null</code>, no icon
 *        will be used.
 * @see #setBackButtonIcon
 */
public void setForwardButtonIcon(Icon icon) {
  if (forwardButton.getComponentOrientation().isLeftToRight()) {
    forwardButton.setIcon(icon);
  }
  else {
    backButton.setIcon(icon);
  }
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

/**
 * Sets the icon to use for the "back" button.
 *
 * @param icon The icon to use.  If <code>null</code>, no icon
 *        will be used.
 * @see #setForwardButtonIcon
 */
public void setBackButtonIcon(Icon icon) {
  if (backButton.getComponentOrientation().isLeftToRight()) {
    backButton.setIcon(icon);
  }
  else {
    forwardButton.setIcon(icon);
  }
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
  public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
    return new IconUIResource(SubstanceImageCreator
        .getSearchIcon(15, scheme, pickerButton
            .getComponentOrientation()
            .isLeftToRight()));
  }
}, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: com.github.insubstantial/substance

@Override
  public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
    return new IconUIResource(SubstanceImageCreator
        .getSearchIcon(15, scheme, pickerButton
            .getComponentOrientation()
            .isLeftToRight()));
  }
}, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.java.net.substance/substance

@Override
  public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
    return new IconUIResource(SubstanceImageCreator
        .getSearchIcon(15, scheme, pickerButton
            .getComponentOrientation()
            .isLeftToRight()));
  }
}, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.java.net.substance/substance

@Override
  public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
    return new IconUIResource(SubstanceImageCreator
        .getSearchIcon(15, scheme, pickerButton
            .getComponentOrientation()
            .isLeftToRight()));
  }
}, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.jspresso.framework/jspresso-swing-components

locale) + "<<");
detailsPanel.applyComponentOrientation(detailsButton
  .getComponentOrientation());
detailsPane.setCaretPosition(0);
setSize(getWidth(), height);

代码示例来源:origin: org.jspresso/jspresso-swing-components

+ "<<");
detailsPanel.applyComponentOrientation(detailsButton
  .getComponentOrientation());
detailsPane.setCaretPosition(0);
setSize(getWidth(), height);

代码示例来源:origin: com.fifesoft.rtext/fife.common

File loc = (File)b.getClientProperty(PROPERTY_LOCATION);
addItemsFor(loc.getParentFile(), popup);
popup.applyComponentOrientation(b.getComponentOrientation());
popup.addPopupMenuListener(new BreadcrumbPopupMenuListener(backButton));
displayRelativeTo(popup, backButton);

相关文章

JButton类方法