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

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

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

JTextField.getColumns介绍

暂无

代码示例

代码示例来源:origin: com.github.waikato/fcms-widgets

/**
 * Returns the number of columns of the text field.
 *
 * @return        the number of columns (>0)
 */
public int getTextColumns() {
 return m_TextSelection.getColumns();
}

代码示例来源:origin: net.sf.meka/meka

/**
 * Returns the number of columns of the text field.
 *
 * @return        the number of columns (>0)
 */
public int getTextColumns() {
  return m_TextSearch.getColumns();
}

代码示例来源:origin: Waikato/meka

/**
 * Returns the number of columns of the text field.
 *
 * @return        the number of columns (>0)
 */
public int getTextColumns() {
  return m_TextSearch.getColumns();
}

代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler

public int getColumns() {
  return fileName.getColumns();
}

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

if (editor instanceof JSpinner.DefaultEditor) {
  JTextField textField = ((JSpinner.DefaultEditor)editor).getTextField();
  int nbColumns = textField.getColumns();
  if(nbColumns>MAX_SPINNER_COLUMNS )
    textField.setColumns(MAX_SPINNER_COLUMNS );

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

private static Dimension computeSizeForTextComponent(JTextComponent textComponent) {
  if (textComponent instanceof JTextField) {
    JTextField textField = (JTextField)textComponent;
    int columns = textField.getColumns();
    if (columns > 0) {
      return computeSizeForTextComponentColumns(textComponent, columns);
    }
  } else if (textComponent instanceof JTextArea) {
    JTextArea textArea = (JTextArea)textComponent;
    int columns = textArea.getColumns();
    if (columns > 0) {
      return computeSizeForTextComponentColumns(textComponent, columns);
    }
  }
  return textComponent.getPreferredSize();
}

代码示例来源:origin: stackoverflow.com

birthDayField.setColumns(nameField.getColumns());
JPanel dataInPanel = new JPanel();
dataInPanel.add(new JLabel("Enter Name:"));

代码示例来源:origin: triplea-game/triplea

@Test
void columns() {
 MatcherAssert.assertThat(
   JTextFieldBuilder.builder()
     .columns(3)
     .build()
     .getColumns(),
   Is.is(3));
}

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

if (((JTextField)component).getColumns() > 35)
    ((JTextField)component).setColumns(35);
if (Product.DESCRIPTION.equalsIgnoreCase(fieldInfo.getFieldName()))

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

JTextField inlineTextField = FormComponentBox.createTextField(renderedTextField.getText(), renderedTextField.getColumns());
Font font = UIManager.getFont("TextField.font"); // NOI18N
inlineTextField.setFont(font.deriveFont(fontSize));

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

lbl.setColumns(txtField.getColumns());

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

lbl.setColumns(txtField.getColumns());

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

lbl.setColumns(txtField.getColumns());

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

lbl.setColumns(txtField.getColumns());

相关文章

JTextField类方法