本文整理了Java中javax.swing.JLabel.setComponentOrientation()
方法的一些代码示例,展示了JLabel.setComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.setComponentOrientation()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:setComponentOrientation
暂无
代码示例来源:origin: stackoverflow.com
String text = "\u202Eca 12 \u05D1\u05D3\u05D9\u05E7\u05D4";
JLabel testLabel = new JLabel();
testLabel.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT );
testLabel.setText(text);
testLabel.setBorder( new LineBorder( Color.BLACK ) );
代码示例来源:origin: stackoverflow.com
JPanel headerPanel = new JPanel( new BorderLayout() );
JPanel headerPan = new JPanel();
JLabel xxx = new JLabel( "SWING TEST" );
xxx.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
headerPan.add(xxx);
代码示例来源:origin: com.jidesoft/jide-oss
private JLabel getLabel(Component c) {
this.label.setText(getTitle());
this.label.setFont(getFont(c));
this.label.setForeground(getColor(c));
this.label.setComponentOrientation(c.getComponentOrientation());
this.label.setEnabled(c.isEnabled());
return this.label;
}
}
代码示例来源:origin: org.zaproxy/zap
jLabel = new JLabel();
jLabel.setText(" ");
jLabel.setComponentOrientation(java.awt.ComponentOrientation.UNKNOWN);
jPanelBottom = new JPanel();
jPanelBottom.setLayout(new GridBagLayout());
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
ComponentOrientation old = label.getComponentOrientation();
label.setComponentOrientation(o);
firePropertyChange("componentOrientation", old, label.getComponentOrientation());
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
ComponentOrientation old = label.getComponentOrientation();
label.setComponentOrientation(o);
firePropertyChange("componentOrientation", old, label.getComponentOrientation());
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
ComponentOrientation old = label.getComponentOrientation();
label.setComponentOrientation(o);
firePropertyChange("componentOrientation", old, label.getComponentOrientation());
}
代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing
.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
messageLabel.setHorizontalAlignment(SwingConstants.LEFT);
messageLabel.setFont(messageLabel.getFont().deriveFont(
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
ComponentOrientation old = label.getComponentOrientation();
label.setComponentOrientation(o);
firePropertyChange("componentOrientation", old, label.getComponentOrientation());
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
/**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
ComponentOrientation old = label.getComponentOrientation();
label.setComponentOrientation(o);
firePropertyChange("componentOrientation", old, label.getComponentOrientation());
}
代码示例来源:origin: stackoverflow.com
label.setOpaque(true);
label.setFocusable(true);
label.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
if (isSelected) {
label.setBackground(list.getSelectionBackground());
代码示例来源:origin: igvteam/igv
label2.setLabelFor(genomeList);
label2.setAlignmentX(1.0F);
label2.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
label2.setPreferredSize(new Dimension(400, 16));
label2.setMaximumSize(new Dimension(400, 16));
代码示例来源:origin: stackoverflow.com
label.setOpaque(true);
label.setFocusable(true);
label.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
if (isSelected) {
label.setBackground(list.getSelectionBackground());
代码示例来源:origin: com.github.insubstantial/flamingo
/**
* Recomputes the components for button group headers.
*/
protected void recomputeGroupHeaders() {
if (this.groupLabels != null) {
for (JLabel groupLabel : this.groupLabels) {
this.buttonPanel.remove(groupLabel);
}
}
int groupCount = this.buttonPanel.getGroupCount();
this.groupLabels = new JLabel[groupCount];
for (int i = 0; i < groupCount; i++) {
this.groupLabels[i] = new JLabel(this.buttonPanel
.getGroupTitleAt(i));
this.groupLabels[i].setComponentOrientation(this.buttonPanel
.getComponentOrientation());
this.buttonPanel.add(this.groupLabels[i]);
this.groupLabels[i].setVisible(this.buttonPanel
.isToShowGroupLabels());
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
label1.setComponentOrientation(tree.getComponentOrientation()); // TODO [ian]: what does this mean wrt label2, label3
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
this.render_row = row;
this.parentHolder = list;
label.setComponentOrientation(list.getComponentOrientation());
label.setEnabled(list.isEnabled());
label.setFont(list.getFont());
内容来源于网络,如有侵权,请联系作者删除!