From: Alan E. <ez...@us...> - 2006-06-30 18:11:35
|
Update of /cvsroot/jedit/plugins/FastOpen/com/patelsoft/fastopen In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29320/com/patelsoft/fastopen Modified Files: FastOpen.java Log Message: DefaultFocusComponent Index: FastOpen.java =================================================================== RCS file: /cvsroot/jedit/plugins/FastOpen/com/patelsoft/fastopen/FastOpen.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- FastOpen.java 6 Mar 2006 12:50:03 -0000 1.5 +++ FastOpen.java 30 Jun 2006 18:11:30 -0000 1.6 @@ -12,13 +12,14 @@ import javax.swing.event.*; import javax.swing.text.BadLocationException; import org.gjt.sp.jedit.*; +import org.gjt.sp.jedit.gui.DefaultFocusComponent; import org.gjt.sp.jedit.io.VFSManager; import org.gjt.sp.jedit.textarea.JEditTextArea; import org.gjt.sp.util.*; import gnu.regexp.*; -public class FastOpen extends JPanel implements ActionListener, IndexListener +public class FastOpen extends JPanel implements ActionListener, IndexListener, DefaultFocusComponent { private final String TITLE = "Fast Open " + jEdit.getProperty("plugin.com.patelsoft.fastopen.FastOpenPlugin.version"); View view; @@ -1341,5 +1342,10 @@ indexManager.suggestReindex(); } + public void focusOnDefaultComponent() + { + txtfilename.requestFocus(); + } + } |