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

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

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

JTextField.getMaximumSize介绍

暂无

代码示例

代码示例来源:origin: pentaho/mondrian

listEditor.setMaximumSize(stringEditor.getMaximumSize());
listEditor.setFont(Font.decode("Dialog"));
listEditor.setBackground(Color.white);

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
  public Dimension getMaximumSize() {
    Dimension superMax = super.getMaximumSize();
    superMax.height = getPreferredSize().height;
    return superMax;
  }
};

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
  public Dimension getMaximumSize() {
    Dimension superMax = super.getMaximumSize();
    superMax.height = getPreferredSize().height;
    return superMax;
  }
};

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
  public Dimension getMaximumSize() {
    Dimension superMax = super.getMaximumSize();
    superMax.height = getPreferredSize().height;
    return superMax;
  }
};

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
  public Dimension getMaximumSize() {
    Dimension superMax = super.getMaximumSize();
    superMax.height = getPreferredSize().height;
    return superMax;
  }
};

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
  public Dimension getMaximumSize() {
    Dimension superMax = super.getMaximumSize();
    superMax.height = getPreferredSize().height;
    return superMax;
  }
};

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

.getMaximumSize().getWidth()), (int) (filenameField.getPreferredSize()
  .getHeight())));
filenameField.setEditable(false);

代码示例来源:origin: vasl-developers/vasl

getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
status = new JTextField("Leave board number blank to apply to all boards:  ");
status.setMaximumSize(new Dimension(status.getMaximumSize().width, status.getPreferredSize().height));
status.setEditable(false);
card = new CardLayout();

代码示例来源:origin: raydac/netbeans-mmd-plugin

this.textFieldSearchText.setMaximumSize(new Dimension(TEXT_FIELD_WIDTH, this.textFieldSearchText.getMaximumSize().height));

代码示例来源:origin: uk.ac.ebi.pride.validator/prideValidator

private void constructScreen() {
  txtInputFile = new JTextField(30);
  txtInputFile.setMaximumSize(new Dimension(txtInputFile.getMaximumSize().width, txtInputFile.getPreferredSize().height));
  JLabel lblInputFile = new JLabel("PRIDE XML file to validate: ");
  btnBrowse = new JButton("Browse...");

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_components

/**
 * Creates one of the fields used to display the graph's current values.
 *
 * @param color
 *            the color used to draw the value. By convention this is the
 *            same color that is used to draw the graph for this value and
 *            in the choose panel.
 * @param length
 *            the number of digits which the field should be able to display
 *
 * @return a text field configured to display one of the current graph
 *         values
 */
private JTextField createInfoField(Color color, int length) {
  JTextField field = new JTextField(length);
  field.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
  field.setEditable(false);
  field.setForeground(color);
  field.setBackground(getBackground());
  // The text field should expand horizontally, but have
  // a fixed height
  field.setMaximumSize(new Dimension(field.getMaximumSize().width, field.getPreferredSize().height));
  return field;
}

代码示例来源:origin: vasl-developers/vasl

label.setMaximumSize(new Dimension(label.getMaximumSize().width, label.getPreferredSize().height));
label.addActionListener(updateOnAction);
label.addFocusListener(updateOnFocus);

代码示例来源:origin: vasl-developers/vasl

m_edtInputText.setMaximumSize(new Dimension(m_edtInputText.getMaximumSize().width,
m_edtInputText.getPreferredSize().height));

相关文章

JTextField类方法