本文整理了Java中javax.swing.JTextField.getSize()
方法的一些代码示例,展示了JTextField.getSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.getSize()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:getSize
暂无
代码示例来源:origin: FellowTraveler/otapij
/**
* Event handler that displays the DatePicker when the button is
* clicked.
* @param evt
*/
private void onButtonClick(final java.awt.event.ActionEvent evt) {
if ("".equals(dateText.getText()))
dp = new DatePicker();
else
dp = new DatePicker(stringToDate(dateText.getText()));
dp.setHideOnSelect(true);
dp.addComponentListener(new Listener());
final Point p = dateText.getLocationOnScreen();
p.setLocation(p.getX(), p.getY() - 1 + dateText.getSize().getHeight());
dlg = new JDialog(new JFrame(), true);
dlg.setLocation(p);
dlg.setResizable(false);
dlg.setUndecorated(true);
dlg.getContentPane().add(dp);
dlg.pack();
dlg.show();
}
代码示例来源:origin: Waikato/weka-trunk
m_browserTools.addSeparator();
m_browserTools.add(searchHolder);
Dimension d = m_searchField.getSize();
m_searchField.setMaximumSize(new Dimension(150, 20));
m_searchField.setEnabled(m_packageDescriptions.size() > 0);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_browserTools.addSeparator();
m_browserTools.add(searchHolder);
Dimension d = m_searchField.getSize();
m_searchField.setMaximumSize(new Dimension(150, 20));
m_searchField.setEnabled(m_packageDescriptions.size() > 0);
代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker
int defaultY = timeTextField.getLocationOnScreen().y + timeTextField.getSize().height - 1;
内容来源于网络,如有侵权,请联系作者删除!