javax.swing.JTextField.setMargin()方法的使用及代码示例

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

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

JTextField.setMargin介绍

暂无

代码示例

代码示例来源:origin: RPTools/maptool

/** Creates a text input control. */
public JComponent createTextControl(VarSpec vs) {
  int width = vs.optionValues.getNumeric("Width");
  JTextField txt = new JTextField(vs.value, width);
  txt.setMargin(textInsets);
  return txt;
}

代码示例来源:origin: org.japura/japura-gui

private void updateMargin() {
 getField().setMargin(new Insets(0, marginGap, 0, marginGap));
}

代码示例来源:origin: guru.nidi/jdepend

private JTextField createStatusField() {
  JTextField statusField = new JTextField();
  statusField.setFont(BOLD_FONT);
  statusField.setEditable(false);
  statusField.setForeground(Color.black);
  statusField.setBorder(BorderFactory
      .createBevelBorder(BevelBorder.LOWERED));
  Insets insets = new Insets(5, 5, 5, 5);
  statusField.setMargin(insets);
  return statusField;
}

代码示例来源:origin: digital-preservation/droid

jtextValues.setMargin(new java.awt.Insets(0, 0, 0, 0));

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

jtextValues.setMargin(new java.awt.Insets(0, 0, 0, 0));

代码示例来源:origin: onyxbits/Raccoon

query = new JTextField();
query.setToolTipText(Messages.getString("SearchView.3")); //$NON-NLS-1$
query.setMargin(new Insets(3,3,3,3));
page = new JSpinner(new SpinnerNumberModel(1, 1, 10000, 1));
page.setToolTipText(Messages.getString("SearchView.4")); //$NON-NLS-1$

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

txtClassUriTemplate.setMargin(new java.awt.Insets(0, 0, 0, 0));
txtClassUriTemplate.setMinimumSize(new java.awt.Dimension(240, 23));
txtClassUriTemplate.setPreferredSize(new java.awt.Dimension(240, 23));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

fontChosenField.setMargin(new java.awt.Insets(1, 2, 2, 4));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;

代码示例来源:origin: robward-scisys/sldeditor

selectedCharField.setFont(new Font(SYSTEM_FONT, Font.PLAIN, 14)); // apply new font to
selectedCharField.setMargin(new Insets(1, 5, 2, 5)); // top, left, bottom, right

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

hostTextField.setToolTipText(JBroFuzzPrefs.UPDATE[1].getTooltip());
hostTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
hostTextField.setMargin(new Insets(1, 1, 1, 1));
portTextField.setToolTipText(JBroFuzzPrefs.UPDATE[2].getTooltip());
portTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
portTextField.setMargin(new Insets(1, 1, 1, 1));
userTextField.setToolTipText(JBroFuzzPrefs.UPDATE[5].getTooltip());
userTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
userTextField.setMargin(new Insets(1, 1, 1, 1));
userTextField.setPreferredSize(new Dimension(80, 20));
passTextField.setToolTipText(JBroFuzzPrefs.UPDATE[6].getTooltip());
passTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
passTextField.setMargin(new Insets(1, 1, 1, 1));
passTextField.setPreferredSize(new Dimension(80, 20));

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

dateTextField.setMargin(new Insets(1, 3, 2, 2));
dateTextField.setBorder(new CompoundBorder(
    new MatteBorder(1, 1, 1, 1, new Color(122, 138, 153)),

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

urlField.setFont(new Font("Verdana", Font.BOLD, 12));
urlField.setToolTipText("[{Protocol} :// {Host} [:{Port}]]");
urlField.setMargin(new Insets(1, 1, 1, 1));
urlField.setBackground(Color.WHITE);
urlField.setForeground(Color.BLACK);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

dirTextField = new JTextField(dir);
dirTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
dirTextField.setMargin(new Insets(1, 1, 1, 1));

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

timeTextField.setMargin(new Insets(1, 3, 2, 2));
timeTextField.setBorder(new CompoundBorder(
    new MatteBorder(1, 1, 1, 1, new Color(122, 138, 153)),

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

hostTextField.setToolTipText(JBroFuzzPrefs.DBSETTINGS[1].getTooltip());
hostTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
hostTextField.setMargin(new Insets(1, 1, 1, 1));
portTextField.setToolTipText(JBroFuzzPrefs.DBSETTINGS[2].getTooltip());
portTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
portTextField.setMargin(new Insets(1, 1, 1, 1));
userTextField.setToolTipText(JBroFuzzPrefs.DBSETTINGS[5].getTooltip());
userTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
userTextField.setMargin(new Insets(1, 1, 1, 1));
userTextField.setPreferredSize(new Dimension(80, 20));
passTextField.setToolTipText(JBroFuzzPrefs.DBSETTINGS[6].getTooltip());
passTextField.setFont(new Font("Verdana", Font.PLAIN, 12));
passTextField.setMargin(new Insets(1, 1, 1, 1));
passTextField.setPreferredSize(new Dimension(80, 20));
    .getTooltip());
dbNameTextField.setFont(new Font("Veranda", Font.PLAIN, 12));
dbNameTextField.setMargin(new Insets(1, 1, 1, 1));
dbNameTextField.setPreferredSize(new Dimension(80, 20));

代码示例来源:origin: crashinvaders/gdx-texture-packer-gui

txfTitle.setMargin(new Insets(0, 4, 0, 4));

相关文章

JTextField类方法