From: amwaterhouse Date: Tue, 13 Sep 2005 17:44:59 +0000 (+0000) Subject: Give focus to textarea on startup X-Git-Tag: Release_2_05b~39 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=64a0d836635dc75e58f93f730c490ed2ce9ffaef;p=jalview.git Give focus to textarea on startup --- 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(); + } + }); } /**