本文整理了Java中javax.swing.JButton.getComponentOrientation()
方法的一些代码示例,展示了JButton.getComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getComponentOrientation()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!