本文整理了Java中javax.swing.JEditorPane.requestFocusInWindow()
方法的一些代码示例,展示了JEditorPane.requestFocusInWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.requestFocusInWindow()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:requestFocusInWindow
暂无
代码示例来源:origin: ron190/jsql-injection
@Override
public void mousePressed(MouseEvent e) {
super.mousePressed(e);
text[0].requestFocusInWindow();
}
});
代码示例来源:origin: freeplane/freeplane
@Override
public void selectInitialValue() {
textArea.requestFocusInWindow();
}
};
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui
/**
*/
@Override
public boolean requestFocusInWindow() {
return textPane.requestFocusInWindow();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
void componentActivated() {
// See 6573346
editorPane.requestFocusInWindow();
}
代码示例来源:origin: org.netbeans.api/org-openide-text
@Deprecated
@Override
public boolean requestDefaultFocus() {
if ((customComponent != null) && !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else if (pane != null) {
return pane.requestFocusInWindow();
}
return false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public boolean requestDefaultFocus() {
if(customComponent != null
&& !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else if(pane != null) {
return pane.requestFocusInWindow();
}
return false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public boolean requestDefaultFocus() {
if(customComponent != null
&& !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else if(pane != null) {
return pane.requestFocusInWindow();
}
return false;
}
代码示例来源:origin: org.netbeans.api/org-openide-text
/** Transfer the focus to the editor pane.
*/
@Deprecated
@Override
public boolean requestFocusInWindow() {
super.requestFocusInWindow();
if (pane != null) {
if ((customComponent != null) && !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else {
return pane.requestFocusInWindow();
}
}
return false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Transfer the focus to the editor pane.
*/
public boolean requestFocusInWindow() {
super.requestFocusInWindow();
if(customComponent != null
&& !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else if(pane != null) {
return pane.requestFocusInWindow();
}
return false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Transfer the focus to the editor pane.
*/
public boolean requestFocusInWindow() {
super.requestFocusInWindow();
if(customComponent != null
&& !SwingUtilities.isDescendingFrom(pane, customComponent)) {
return customComponent.requestFocusInWindow();
} else if(pane != null) {
return pane.requestFocusInWindow();
}
return false;
}
代码示例来源:origin: de.sciss/jsyntaxpane
private void jCmbLangsItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCmbLangsItemStateChanged
if (evt.getStateChange() == ItemEvent.SELECTED) {
String lang = jCmbLangs.getSelectedItem().toString();
// save the state of the current JEditorPane, as it's Document is about
// to be replaced.
String oldText = jEdtTest.getText();
// install a new DefaultSyntaxKit on the JEditorPane for the requested language.
jEdtTest.setContentType(lang);
// Recreate the Toolbar
jToolBar1.removeAll();
EditorKit kit = jEdtTest.getEditorKit();
if (kit instanceof DefaultSyntaxKit) {
DefaultSyntaxKit defaultSyntaxKit = (DefaultSyntaxKit) kit;
defaultSyntaxKit.addToolBarActions(jEdtTest, jToolBar1);
}
jToolBar1.validate();
try {
// setText should not be called (read the JavaDocs). Better use the read
// method and create a new document.
jEdtTest.read(new StringReader(oldText), lang);
} catch (IOException ex) {
Logger.getLogger(SyntaxTester.class.getName()).log(Level.SEVERE, null, ex);
}
}
jEdtTest.requestFocusInWindow();
}//GEN-LAST:event_jCmbLangsItemStateChanged
代码示例来源:origin: freeplane/freeplane
public void run() {
final SHTMLPanel htmlEditorPanel = noteController.getHtmlEditorPanel();
if (! noteController.isNoteEditorShowing()) {
noteController.showNotesPanel(true);
}
else {
htmlEditorPanel.getMostRecentFocusOwner().requestFocusInWindow();
if (ResourceController.getResourceController().getBooleanProperty("goto_note_end_on_edit")) {
final JEditorPane editorPane = htmlEditorPanel.getEditorPane();
editorPane.setCaretPosition(editorPane.getDocument().getLength());
}
}
}
});
代码示例来源:origin: dcaoyuan/nbscala
tfCondition.requestFocusInWindow();
} else {
tfCondition.setVisible(false);
代码示例来源:origin: freeplane/freeplane
textfield.requestFocusInWindow();
内容来源于网络,如有侵权,请联系作者删除!