X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FTextFrame.java;h=b2a35ea8867c4d4a4018b91daaebc7a868d563af;hb=f4c563596b6968fd343fdab7fa32b54431a17f2e;hp=8f9905438f2e86f481ef78544a8b535246350ac4;hpb=e35f4cbe193b2c61036498e5f3aa7e2deea9c448;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/TextFrame.java b/forester/java/src/org/forester/archaeopteryx/TextFrame.java index 8f99054..b2a35ea 100644 --- a/forester/java/src/org/forester/archaeopteryx/TextFrame.java +++ b/forester/java/src/org/forester/archaeopteryx/TextFrame.java @@ -42,7 +42,6 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; -import java.security.acl.Permission; import java.util.LinkedList; import javax.swing.JButton; @@ -139,17 +138,8 @@ final class TextFrame extends JFrame implements ActionListener, ClipboardOwner { } } - void close() { - setVisible( false ); - dispose(); - } - - void removeMe() { - final int i = _tframes.indexOf( this ); - if ( i >= 0 ) { - _tframes.remove( i ); - } - close(); + @Override + public void lostOwnership( final Clipboard clipboard, final Transferable contents ) { } private void copy() { @@ -162,8 +152,17 @@ final class TextFrame extends JFrame implements ActionListener, ClipboardOwner { sys_clipboard.setContents( contents, this ); } - @Override - public void lostOwnership( final Clipboard clipboard, final Transferable contents ) { + void close() { + setVisible( false ); + dispose(); + } + + void removeMe() { + final int i = _tframes.indexOf( this ); + if ( i >= 0 ) { + _tframes.remove( i ); + } + close(); } static TextFrame instantiate( final String s, final String title, final LinkedList tframes ) {