本文整理了Java中javax.swing.JScrollPane.requestFocus()
方法的一些代码示例,展示了JScrollPane.requestFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.requestFocus()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:requestFocus
暂无
代码示例来源:origin: net.java.abeille/abeille
void popupNotify() {
listScrollPane.requestFocus();
}
代码示例来源:origin: org.icepdf.os/icepdf-viewer
public void requestViewFocusInWindow() {
if (documentViewScrollPane != null)
documentViewScrollPane.requestFocus();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
void popupNotify() {
listScrollPane.requestFocus();
}
代码示例来源:origin: beanshell/beanshell
public void requestFocus()
{
super.requestFocus();
text.requestFocus();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-callgraph
@Override
public void requestFocus() {
super.requestFocus();
treeView.requestFocus();
}
代码示例来源:origin: stackoverflow.com
JTextArea textArea = new JTextArea();
textArea.setEditable(true);
JScrollPane scrollPane = new JScrollPane(textArea);
scrollPane.requestFocus();
textArea.requestFocusInWindow();
scrollPane.setPreferredSize(new Dimension(800, 600));
JOptionPane.showMessageDialog(
(ControlWindow) App.controller.control, scrollPane,
"Paste Info", JOptionPane.PLAIN_MESSAGE);
String info = textArea.getText();
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = FOCUS_JSDOC)
@Override
public void focus() {
super.requestFocus();
}
代码示例来源:origin: org.beanfabrics/beanfabrics-core
public void actionPerformed(ActionEvent evt) {
Object source = evt.getSource();
if (source instanceof JCheckBox) {
JCheckBox checkBox = (JCheckBox)source;
JScrollPane scrollPane = ErrorPane.this.getStackTraceScrollPane();
scrollPane.setVisible(checkBox.isSelected());
if (checkBox.isSelected()) {
scrollPane.requestFocus();
}
if (dialog != null) {
dialog.pack();
}
getStackTracePanel().revalidate();
}
}
};
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
@Override
public void requestFocus() {
Component view = getViewport().getView();
if (view != null) {
view.requestFocus();
} else {
super.requestFocus();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
@Override
public void requestFocus() {
Component view = getViewport().getView();
if (view != null) {
view.requestFocus();
} else {
super.requestFocus();
}
}
@Override
内容来源于网络,如有侵权,请联系作者删除!