X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fappletgui%2FEmbmenuFrame.java;h=c527308eba0da8b49b952b78a700112972772885;hb=6a9cf7ddfdb65e38e8caa2d760877725b7f7bae0;hp=858a5a3bb7f5843597d6862f3e561c10e6f087ce;hpb=59d682209891099d46b960509907c79e3fb276fe;p=jalview.git diff --git a/src/jalview/appletgui/EmbmenuFrame.java b/src/jalview/appletgui/EmbmenuFrame.java index 858a5a3..c527308 100644 --- a/src/jalview/appletgui/EmbmenuFrame.java +++ b/src/jalview/appletgui/EmbmenuFrame.java @@ -1,37 +1,38 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) - * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package jalview.appletgui; +import jalview.util.MessageManager; + import java.awt.BorderLayout; import java.awt.Color; -import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Frame; -import java.awt.GraphicsConfiguration; import java.awt.HeadlessException; import java.awt.Label; import java.awt.Menu; import java.awt.MenuBar; import java.awt.Panel; import java.awt.PopupMenu; -import java.awt.event.ActionListener; -import java.awt.event.ItemListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.Enumeration; @@ -95,7 +96,7 @@ public class EmbmenuFrame extends Frame implements MouseListener { // Build the embedded menu panel embeddedMenu = makeEmbeddedPopupMenu(topMenuBar, "Arial", Font.PLAIN, - 10, true); // try to pickup system font. + 11, true); // try to pickup system font. setMenuBar(null); // add the components to the TreePanel area. add(embeddedMenu, BorderLayout.NORTH); @@ -196,8 +197,7 @@ public class EmbmenuFrame extends Frame implements MouseListener { if (embeddedPopup == null) { - throw new Error( - "Implementation error - embeddedPopup must be non-null"); + throw new Error(MessageManager.getString("error.implementation_error_embeddedpopup_not_null")); } if (overrideFonts) {