From: amwaterhouse Date: Wed, 1 Dec 2004 17:03:29 +0000 (+0000) Subject: Find added to edit menu X-Git-Tag: Release_2_0~894 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=03ba271b19ac384a6d7fdad31a3a3bc6b0cc0006;p=jalview.git Find added to edit menu --- diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 12dd3a6..18df6ce 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -83,6 +83,8 @@ public class GAlignFrame extends JInternalFrame protected JCheckBoxMenuItem wrapMenuItem = new JCheckBoxMenuItem(); JMenuItem pdbTest = new JMenuItem(); JMenuItem printMenuItem = new JMenuItem(); + protected JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem(); + JMenuItem findMenuItem = new JMenuItem(); public GAlignFrame() { try @@ -626,6 +628,23 @@ public class GAlignFrame extends JInternalFrame printMenuItem_actionPerformed(e); } }); + renderGapsMenuItem.setText("Render gaps"); + renderGapsMenuItem.setState(true); + renderGapsMenuItem.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + renderGapsMenuItem_actionPerformed(e); + } + }); + findMenuItem.setText("Find"); + findMenuItem.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + findMenuItem_actionPerformed(e); + } + }); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(fontMenu); @@ -660,6 +679,8 @@ public class GAlignFrame extends JInternalFrame editMenu.add(removeGappedColumnMenuItem); editMenu.add(removeAllGapsMenuItem); editMenu.add(setGapCharMenuItem); + editMenu.addSeparator(); + editMenu.add(findMenuItem); fontMenu.add(fontNameMenuItem); fontMenu.add(fontSizeMenuItem); fontMenu.add(fontStyleMenuItem); @@ -667,6 +688,7 @@ public class GAlignFrame extends JInternalFrame viewMenu.add(viewBoxesMenuItem); viewMenu.add(viewTextMenuItem); viewMenu.add(colourTextMenuItem); + viewMenu.add(renderGapsMenuItem); viewMenu.add(consensusGraphMenuItem); viewMenu.add(overviewMenuItem); colourMenu.add(noColourmenuItem); @@ -1021,4 +1043,14 @@ public class GAlignFrame extends JInternalFrame } + protected void renderGapsMenuItem_actionPerformed(ActionEvent e) + { + + } + + protected void findMenuItem_actionPerformed(ActionEvent e) + { + + } + }