本文整理了Java中javax.swing.JLabel.applyComponentOrientation()
方法的一些代码示例,展示了JLabel.applyComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.applyComponentOrientation()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:applyComponentOrientation
暂无
代码示例来源:origin: com.github.insubstantial/substance-swingx
@Override
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* Configures label for the group using its title, font, icon and
* orientation.
*
* @param group
* Selected group.
*/
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* Configures label for the group using its title, font, icon and
* orientation.
*
* @param group
* Selected group.
*/
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* Configures label for the group using its title, font, icon and
* orientation.
*
* @param group
* Selected group.
*/
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* Configures label for the group using its title, font, icon and
* orientation.
*
* @param group
* Selected group.
*/
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
/**
* Configures label for the group using its title, font, icon and
* orientation.
*
* @param group
* Selected group.
*/
protected void configureLabel(JXTaskPane group) {
label.applyComponentOrientation(group.getComponentOrientation());
label.setFont(group.getFont());
label.setText(group.getTitle());
label.setIcon(group.getIcon() == null ? new EmptyIcon() : group
.getIcon());
}
代码示例来源:origin: Multibit-Legacy/multibit-hd
/**
* <p>Align the icon according to the locale (leading or trailing)</p>
*
* @param label The label (iconography will change will changes to the label color and font)
* @param leading True if the icon comes before the text in the reading direction (LTR and RTL is handled automatically)
*/
private static void align(JLabel label, boolean leading) {
label.applyComponentOrientation(ComponentOrientation.getOrientation(Languages.currentLocale()));
if (leading) {
// Text trails the icon in LTR
label.setHorizontalTextPosition(SwingConstants.TRAILING);
} else {
label.setHorizontalTextPosition(SwingConstants.LEADING);
}
}
内容来源于网络,如有侵权,请联系作者删除!