本文整理了Java中javax.swing.JLabel.setUI()
方法的一些代码示例,展示了JLabel.setUI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.setUI()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:setUI
暂无
代码示例来源:origin: stackoverflow.com
this.setBorder(BorderFactory.createCompoundBorder(
new LineBorder(Color.blue), new EmptyBorder(5, 5, 5, 5)));
textLabel.setUI(myUI);
textLabel.setFont(new Font("Serif", Font.ITALIC, 24));
this.add(sizeLabel);
代码示例来源:origin: tomighty/tomighty
public JLabel create(float size, String text) {
JLabel label = new JLabel();
label.setUI(labelUI);
if (size > 0f) {
Font font = label.getFont();
label.setFont(font.deriveFont(size));
}
label.setText(text);
return label;
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public void setUI(LabelUI ui) {
if (ui instanceof ToolScrollBarArrowUI)
super.setUI(ui);
}
};
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void setUI(LabelUI ui) {
super.setUI(UI);
}
代码示例来源:origin: stackoverflow.com
JTabbedPane tabPane = new JTabbedPane(JTabbedPane.LEFT);
// Add tabs with no text
tabPane.addTab(null, component1);
tabPane.addTab(null, component2);
// Create vertical labels to render tab titles
JLabel labTab1 = new JLabel("Tab #1");
labTab1.setUI(new VerticalLabelUI(false)); // true/false to make it upwards/downwards
tabPane.setTabComponentAt(0, labTab1); // For component1
JLabel labTab2 = new JLabel("Tab #2");
labTab2.setUI(new VerticalLabelUI(false));
tabPane.setTabComponentAt(1, labTab2); // For component2
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public RepresentativeAnchorLabel(Icon image, int horizontalAlignment) {
super(image, horizontalAlignment);
super.setUI((LabelUI) createRepresentativeAnchorUI());
}
代码示例来源:origin: freeplane/freeplane
public static JLabel createConditionLabel(final Icon icon) {
final JLabel label = new JLabel(icon);
label.setUI((BasicLabelUI)BasicLabelUI.createUI(label));
return label;
}
代码示例来源:origin: freeplane/freeplane
public static JLabel createConditionLabel(final String text) {
final JLabel label = new JLabel(text);
label.setUI((BasicLabelUI)BasicLabelUI.createUI(label));
return label;
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void setUI(LabelUI ui) {
super.setUI(ui);
init();
}
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void setUI(LabelUI ui) {
super.setUI(ui);
init();
}
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void setUI(LabelUI ignore) {
super.setUI(ui);
init();
}
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void setUI(LabelUI ui) {
super.setUI(ui);
init();
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
public void setUI( javax.swing.plaf.LabelUI ui )
{
ui = (MultiLineLabelUI)MultiLineLabelUI.createUI( this );
super.setUI( ui );
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void setUI(LabelUI ui) {
super.setUI(ui);
init();
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public RepresentativeAnchor(String text, Icon icon, int horizontalAlignment) {
super(text, icon, horizontalAlignment);
super.setUI((LabelUI) createRepresentativeAnchorUI());
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public RepresentativeAnchor(Icon image, int horizontalAlignment) {
super(image, horizontalAlignment);
super.setUI((LabelUI) createRepresentativeAnchorUI());
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public RepresentativeAnchorLabel(String text, Icon icon, int horizontalAlignment) {
super(text, icon, horizontalAlignment);
super.setUI((LabelUI) createRepresentativeAnchorUI());
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
/** Creates new form PaletteFontChooserPreviewPanel */
public PaletteFontChooserPreviewPanel() {
initComponents();
previewLabel.setUI((LabelUI) PaletteLabelUI.createUI(previewLabel));
previewLabel.setBackground(Color.WHITE);
previewLabel.setForeground(Color.BLACK);
previewLabel.setOpaque(true);
setPreferredSize(new Dimension(100,50));
setMinimumSize(new Dimension(100,50));
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@Override
public void setUI(LabelUI ui) {
super.setUI(ui);
setForeground(UIUtil.getHyperlinkForeground());
}
代码示例来源:origin: sing-group/GC4S
public static void main(String[] args) {
JLabel verticalLabel = new JLabel("A vertical label");
verticalLabel.setUI(new VerticalLabelUI(false));
showComponent(
createPanelAndCenterComponent(verticalLabel),
"JVerticalLabel demo"
);
}
}
内容来源于网络,如有侵权,请联系作者删除!