JAL-3021 show Sequence Details with cursor at top
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 3 Apr 2019 15:43:19 +0000 (16:43 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 3 Apr 2019 15:43:19 +0000 (16:43 +0100)
src/jalview/gui/CutAndPasteHtmlTransfer.java

index 2e51bce..1d7d1c9 100644 (file)
@@ -143,6 +143,7 @@ public class CutAndPasteHtmlTransfer extends GCutAndPasteHtmlTransfer
   {
     textarea.setDocument(textarea.getEditorKit().createDefaultDocument());
     textarea.setText(text);
+    textarea.setCaretPosition(0);
   }
 
   @Override