From c92824e67b9dc762bd6c1cdee1a65c10c3dfef15 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Fri, 27 Jul 2007 22:53:59 +0000 Subject: [PATCH] [ 1762466 ] Add "Window" menu to report viewer http://sourceforge.net/tracker/index.php?func=detail&aid=1762466&group_id=176962&atid=879335 --- client/src/org/compiere/print/Viewer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/org/compiere/print/Viewer.java b/client/src/org/compiere/print/Viewer.java index 6ea5d00e8e..2eab0cd65f 100644 --- a/client/src/org/compiere/print/Viewer.java +++ b/client/src/org/compiere/print/Viewer.java @@ -43,7 +43,8 @@ import org.adempiere.pdf.*; * globalqss: integrate Teo Sarca bug fixing * Colin Rooney 2007/03/20 RFE#1670185 & BUG#1684142 * Extend security to Info queries - * + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL - FR [ 1762466 ] */ public class Viewer extends CFrame implements ActionListener, ChangeListener, WindowStateListener @@ -455,6 +456,11 @@ public class Viewer extends CFrame AEnv.addMenuItem("Script", null, null, mTools, this); mTools.addSeparator(); AEnv.addMenuItem("Preference", null, null, mTools, this); + + // Window + AMenu aMenu = (AMenu)Env.getWindow(0); + JMenu mWindow = new WindowMenu(aMenu.getWindowManager(), this); + menuBar.add(mWindow); // Help JMenu mHelp = AEnv.getMenu("Help");