X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fjbgui%2FGCutAndPasteHtmlTransfer.java;fp=src%2Fjalview%2Fjbgui%2FGCutAndPasteHtmlTransfer.java;h=fa9e62cdee43a8301556707b4a69ecce58f0fc6f;hb=b57a02c25e335d033c97f8a6bacd6b54f62bd2b6;hp=6627029a251515f9bc196372df0436a06a88c635;hpb=1cc81e06ac2faa5ee4b8879e9fa019956e34259f;p=jalview.git diff --git a/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java b/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java index 6627029..fa9e62c 100644 --- a/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java +++ b/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java @@ -32,7 +32,7 @@ import javax.swing.*; */ public class GCutAndPasteHtmlTransfer extends JInternalFrame { - protected JEditorPane textarea = new JEditorPane("text/html",""); + protected JEditorPane textarea = new JEditorPane("text/html", ""); protected JScrollPane scrollPane = new JScrollPane(); @@ -43,7 +43,8 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame JMenu editMenu = new JMenu(); JMenuItem copyItem = new JMenuItem(); - protected JCheckBoxMenuItem displaySource=new JCheckBoxMenuItem(); + + protected JCheckBoxMenuItem displaySource = new JCheckBoxMenuItem(); BorderLayout borderLayout2 = new BorderLayout(); @@ -104,7 +105,8 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame }); textarea.setBorder(null); close.setText("Close"); - close.addActionListener(new ActionListener() { + close.addActionListener(new ActionListener() + { public void actionPerformed(ActionEvent e) { cancel_actionPerformed(e); @@ -112,7 +114,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame }); close.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_W, Toolkit.getDefaultToolkit() - .getMenuShortcutKeyMask(), false)); + .getMenuShortcutKeyMask(), false)); selectAll.setText("Select All"); selectAll.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_A, Toolkit.getDefaultToolkit() @@ -139,7 +141,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame copyItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_C, Toolkit.getDefaultToolkit() .getMenuShortcutKeyMask(), false)); - + editMenubar.add(jMenu1); editMenubar.add(editMenu); textarea.setFont(new java.awt.Font("Monospaced", Font.PLAIN, 12)); @@ -160,10 +162,11 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame } }); displaySource.setText("Show HTML Source"); - displaySource.setToolTipText("Select this if you want to copy raw html"); + displaySource + .setToolTipText("Select this if you want to copy raw html"); displaySource.addActionListener(new ActionListener() { - + @Override public void actionPerformed(ActionEvent arg0) { @@ -186,7 +189,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame protected void toggleHtml_actionPerformed(ActionEvent arg0) { // TODO Auto-generated method stub - + } /** @@ -210,7 +213,6 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame { } - /** * DOCUMENT ME! *