Skip to content
Snippets Groups Projects
Commit 6849e1ab authored by tjc's avatar tjc
Browse files

center feature edit frame

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5478 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 308c8ded
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/EditMenu.java,v 1.22 2007-02-06 16:27:36 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/EditMenu.java,v 1.23 2007-02-22 19:34:16 tjc Exp $
**/ **/
package uk.ac.sanger.artemis.components; package uk.ac.sanger.artemis.components;
...@@ -55,7 +55,7 @@ import java.util.Vector; ...@@ -55,7 +55,7 @@ import java.util.Vector;
* A menu with editing commands. * A menu with editing commands.
* *
* @author Kim Rutherford * @author Kim Rutherford
* @version $Id: EditMenu.java,v 1.22 2007-02-06 16:27:36 tjc Exp $ * @version $Id: EditMenu.java,v 1.23 2007-02-22 19:34:16 tjc Exp $
**/ **/
public class EditMenu extends SelectionMenu public class EditMenu extends SelectionMenu
...@@ -788,9 +788,7 @@ public class EditMenu extends SelectionMenu ...@@ -788,9 +788,7 @@ public class EditMenu extends SelectionMenu
edit_frame.getContentPane().add(fe); edit_frame.getContentPane().add(fe);
edit_frame.pack(); edit_frame.pack();
final Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); Utilities.centreFrame(edit_frame);
edit_frame.setLocation(new Point((screen.width - edit_frame.getSize().width)/2,
(screen.height - edit_frame.getSize().height)/2));
edit_frame.setVisible(true); edit_frame.setVisible(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment