javax.swing.JEditorPane.setAlignmentX()方法的使用及代码示例

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

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

JEditorPane.setAlignmentX介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

pane.setEditable(false);
pane.setOpaque(false);
pane.setAlignmentX(Component.CENTER_ALIGNMENT);
panel.add(pane);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-management

Dimension d = label.getPreferredSize();
label.setMaximumSize(new Dimension(d.width + 10, d.height));
label.setAlignmentX(Component.CENTER_ALIGNMENT);
p.add(label);
p.add(Box.createVerticalStrut(10));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-management

Dimension d = label.getPreferredSize();
label.setMaximumSize(new Dimension(d.width + 10, d.height));
label.setAlignmentX(Component.CENTER_ALIGNMENT);
p.add(label);
p.add(Box.createVerticalStrut(10));

代码示例来源:origin: cytoscape.coreplugins/biopax

label.setAlignmentX(Component.LEFT_ALIGNMENT);
Font font = label.getFont();
Font newFont = new Font (font.getFamily(), font.getStyle(), font.getSize()-2);

代码示例来源:origin: openstreetmap/osmembrane

hintLabel.setBorder(null);
hintLabel.setContentType("text/html");
hintLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
hint.add(hintLabel);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-management

Dimension d = label.getPreferredSize();
label.setMaximumSize(new Dimension(d.width + 10, d.height));
label.setAlignmentX(Component.CENTER_ALIGNMENT);
p.add(label);
p.add(Box.createVerticalStrut(10));

代码示例来源:origin: org.cytoscape/cpath2-impl

label.setAlignmentX(Component.LEFT_ALIGNMENT);
Font font = label.getFont();
Font newFont = new Font (font.getFamily(), font.getStyle(), font.getSize()-2);
label.setFont(newFont);
label.setBorder(new EmptyBorder(5,3,3,3));
label.setAlignmentX(Component.LEFT_ALIGNMENT);

代码示例来源:origin: cytoscape.coreplugins/cpath2

label.setAlignmentX(Component.LEFT_ALIGNMENT);
Font font = label.getFont();
Font newFont = new Font (font.getFamily(), font.getStyle(), font.getSize()-2);
label.setFont(newFont);
label.setBorder(new EmptyBorder(5,3,3,3));
label.setAlignmentX(Component.LEFT_ALIGNMENT);

相关文章

JEditorPane类方法