git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee0284
)
Give focus to textarea on startup
author
amwaterhouse
<Andrew Waterhouse>
Tue, 13 Sep 2005 17:44:59 +0000
(17:44 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 13 Sep 2005 17:44:59 +0000
(17:44 +0000)
src/jalview/gui/CutAndPasteTransfer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/CutAndPasteTransfer.java
b/src/jalview/gui/CutAndPasteTransfer.java
index
bd2eb7d
..
10f9777
100755
(executable)
--- a/
src/jalview/gui/CutAndPasteTransfer.java
+++ b/
src/jalview/gui/CutAndPasteTransfer.java
@@
-29,6
+29,7
@@
import java.awt.datatransfer.*;
import java.awt.event.*;
\r
\r
import javax.swing.*;
\r
+import javax.swing.event.InternalFrameEvent;
\r
\r
\r
/**
\r
@@
-45,6
+46,13
@@
public class CutAndPasteTransfer extends GCutAndPasteTransfer
public void setForInput()
\r
{
\r
getContentPane().add(inputButtonPanel, java.awt.BorderLayout.SOUTH);
\r
+ SwingUtilities.invokeLater(new Runnable()
\r
+ {
\r
+ public void run()
\r
+ {
\r
+ textarea.requestFocus();
\r
+ }
\r
+ });
\r
}
\r
\r
/**
\r