From 64a0d836635dc75e58f93f730c490ed2ce9ffaef Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 13 Sep 2005 17:44:59 +0000 Subject: [PATCH] Give focus to textarea on startup --- src/jalview/gui/CutAndPasteTransfer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/gui/CutAndPasteTransfer.java b/src/jalview/gui/CutAndPasteTransfer.java index bd2eb7d..10f9777 100755 --- a/src/jalview/gui/CutAndPasteTransfer.java +++ b/src/jalview/gui/CutAndPasteTransfer.java @@ -29,6 +29,7 @@ import java.awt.datatransfer.*; import java.awt.event.*; import javax.swing.*; +import javax.swing.event.InternalFrameEvent; /** @@ -45,6 +46,13 @@ public class CutAndPasteTransfer extends GCutAndPasteTransfer public void setForInput() { getContentPane().add(inputButtonPanel, java.awt.BorderLayout.SOUTH); + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + textarea.requestFocus(); + } + }); } /** -- 1.7.10.2