本文整理了Java中javax.swing.JTextField.isDisplayable()
方法的一些代码示例,展示了JTextField.isDisplayable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.isDisplayable()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:isDisplayable
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/**
* Adds the search field to the tree.
*/
private void displaySearchField() {
if (getModel().getSize() > 0 && !searchTextField.isDisplayable()) {
JViewport viewport = ListView.this.getViewport();
originalScrollMode = viewport.getScrollMode();
viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
//Rectangle visibleTreeRect = getVisibleRect();
prepareSearchPanel();
add(searchpanel);
revalidate();
repaint();
System.err.println("Displayed search field");
// bugfix #28501, avoid the chars duplicated on jdk1.3
SwingUtilities.invokeLater(new Runnable() {
public void run() {
searchTextField.requestFocus();
}
});
} else {
System.err.println("Not setting up search: " + searchTextField.isDisplayable());
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/**
* Adds the search field to the tree.
*/
private void displaySearchField() {
if (getModel().getSize() > 0 && !searchTextField.isDisplayable()) {
JViewport viewport = ListView.this.getViewport();
originalScrollMode = viewport.getScrollMode();
viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
//Rectangle visibleTreeRect = getVisibleRect();
prepareSearchPanel();
add(searchpanel);
revalidate();
repaint();
System.err.println("Displayed search field");
// bugfix #28501, avoid the chars duplicated on jdk1.3
SwingUtilities.invokeLater(new Runnable() {
public void run() {
searchTextField.requestFocus();
}
});
} else {
System.err.println("Not setting up search: " + searchTextField.isDisplayable());
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/**
* Adds the search field to the tree.
*/
private void displaySearchField() {
if (!searchTextField.isDisplayable()) {
JViewport viewport = TreeView.this.getViewport();
originalScrollMode = viewport.getScrollMode();
viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
searchTextField.setFont (ExplorerTree.this.getFont());
prepareSearchPanel();
add(searchpanel);
doLayout();
searchpanel.repaint();
// bugfix #28501, avoid the chars duplicated on jdk1.3
SwingUtilities.invokeLater (new Runnable () {
public void run () {
searchTextField.requestFocus ();
}
});
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/**
* Adds the search field to the tree.
*/
private void displaySearchField() {
if (!searchTextField.isDisplayable()) {
JViewport viewport = TreeView.this.getViewport();
originalScrollMode = viewport.getScrollMode();
viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
searchTextField.setFont (ExplorerTree.this.getFont());
prepareSearchPanel();
add(searchpanel);
doLayout();
searchpanel.repaint();
// bugfix #28501, avoid the chars duplicated on jdk1.3
SwingUtilities.invokeLater (new Runnable () {
public void run () {
searchTextField.requestFocus ();
}
});
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/**
* Adds the search field to the tree.
*/
private void displaySearchField() {
if ((getModel().getSize() > 0) && !searchTextField.isDisplayable()) {
JViewport viewport = ListView.this.getViewport();
originalScrollMode = viewport.getScrollMode();
viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
//Rectangle visibleTreeRect = getVisibleRect();
prepareSearchPanel();
add(searchpanel);
revalidate();
repaint();
// bugfix #28501, avoid the chars duplicated on jdk1.3
SwingUtilities.invokeLater(
new Runnable() {
public void run() {
searchTextField.requestFocus();
}
}
);
}
}
代码示例来源:origin: in.jlibs/org-netbeans-swing-outline
/**
* Shows the search field.
*/
public void displaySearchField() {
if (!searchTextField.isDisplayable()) {
searchTextField.setFont(ETable.this.getFont());
prepareSearchPanel();
add(searchPanel);
}
doLayout();
invalidate();
validate();
repaint();
searchTextField.requestFocus();
}
内容来源于网络,如有侵权,请联系作者删除!