本文整理了Java中javax.swing.text.JTextComponent.setMargin()
方法的一些代码示例,展示了JTextComponent.setMargin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextComponent.setMargin()
方法的具体详情如下:
包路径:javax.swing.text.JTextComponent
类名称:JTextComponent
方法名:setMargin
暂无
代码示例来源:origin: stackoverflow.com
tPane.setBorder(eb);
tPane.setMargin(new Insets(5, 5, 5, 5));
代码示例来源:origin: stackoverflow.com
content.setMargin(new Insets(5, 5, 5, 5));
content.getDocument().addDocumentListener(new DocumentListener()
代码示例来源:origin: bobbylight/RSyntaxTextArea
editor.setMargin(new InsetsUIResource(2, 2, 2, 2));
代码示例来源:origin: stackoverflow.com
import java.awt.Insets;
import javax.swing.*;
public class TextFieldFun {
public static void main(String[] args) {
JTextField textfield = new JTextField(20);
JPanel panel = new JPanel();
panel.add(textfield);
textfield.setMargin(new Insets(0, 10, 0, 0));
JOptionPane.showMessageDialog(null, panel);
}
}
代码示例来源:origin: stackoverflow.com
BorderFactory.createLineBorder(Color.black),
BorderFactory.createEmptyBorder(5, 5, 5, 5)));
TextPaneScreen2.setMargin(new Insets(4,4,4,4));
screen2.add(TextPaneScreen2);
代码示例来源:origin: stackoverflow.com
text.setMargin(new Insets(5, 5, 5, 5));
text.setBackground(Color.darkGray);
text.setForeground(Color.white);
代码示例来源:origin: stackoverflow.com
FontMetrics metrics = textPane.getFontMetrics(textPane
.getFont());
textPane.setMargin(new Insets(scrollPane.getViewport()
.getHeight() - metrics.getHeight(), 0, 0, 0));
代码示例来源:origin: stackoverflow.com
pane.setMargin(new Insets(10, 10, 10, 10));
代码示例来源:origin: stackoverflow.com
myTextArea.setForeground(Color.WHITE);
myTextArea.setEditable(false);
myTextArea.setMargin(new Insets(10, 10, 10, 10));
代码示例来源:origin: stackoverflow.com
tPane.setBorder(eb);
tPane.setMargin(new Insets(5, 5, 5, 5));
代码示例来源:origin: stackoverflow.com
tPane.setBorder(eb);
tPane.setMargin(new Insets(5, 5, 5, 5));
代码示例来源:origin: org.nuiton.thirdparty/rsyntaxtextarea
editor.setMargin(new InsetsUIResource(2, 2, 2, 2));
代码示例来源:origin: net.java.abeille/abeille
Object value = Settings.getValue(kitClass, SettingsNames.MARGIN);
Insets margin = (value instanceof Insets) ? (Insets) value : null;
component.setMargin(margin);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
component.setMargin(margin);
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
promptComponent.setSelectionColor(txt.getSelectionColor());
promptComponent.setEditable(txt.isEditable());
promptComponent.setMargin(txt.getMargin());
代码示例来源:origin: org.swinglabs.swingx/swingx-all
promptComponent.setSelectionColor(txt.getSelectionColor());
promptComponent.setEditable(txt.isEditable());
promptComponent.setMargin(txt.getMargin());
代码示例来源:origin: org.swinglabs.swingx/swingx-core
promptComponent.setSelectionColor(txt.getSelectionColor());
promptComponent.setEditable(txt.isEditable());
promptComponent.setMargin(txt.getMargin());
代码示例来源:origin: khuxtable/seaglass
c.setMargin(margin);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
Object value = Settings.getValue(kitClass, SettingsNames.MARGIN);
Insets margin = (value instanceof Insets) ? (Insets)value : null;
component.setMargin(margin);
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
editor.setMargin(plaf.getInsets(prefix + ".margin"));
内容来源于网络,如有侵权,请联系作者删除!