From 0f5ab402f4c82e89ee0d08200b5d9fae6bb32f56 Mon Sep 17 00:00:00 2001 From: hansonr Date: Sun, 25 Nov 2018 20:36:25 -0600 Subject: [PATCH] adds swingjs.overflow.hidden client property see Desktop.java --- src/jalview/gui/Desktop.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index e7be765..12359d0 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -364,6 +364,8 @@ public class Desktop extends jalview.jbgui.GDesktop boolean showjconsole = jalview.bin.Cache.getDefault("SHOW_JAVA_CONSOLE", false); desktop = new MyDesktopPane(selmemusage); + + showMemusage.setSelected(selmemusage); desktop.setBackground(Color.white); getContentPane().setLayout(new BorderLayout()); @@ -371,9 +373,16 @@ public class Desktop extends jalview.jbgui.GDesktop // JScrollPane sp = new JScrollPane(); // sp.getViewport().setView(desktop); // getContentPane().add(sp, BorderLayout.CENTER); + + // BH 2018 - just an experiment to try unclipped JInternalFrames. + // Must set for all three to be active: + getRootPane().putClientProperty("swingjs.overflow.hidden", "false"); + ((JComponent)getContentPane()).putClientProperty("swingjs.overflow.hidden", "false"); + desktop.putClientProperty("swingjs.overflow.hidden", "false"); + getContentPane().add(desktop, BorderLayout.CENTER); desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); - + // This line prevents Windows Look&Feel resizing all new windows to maximum // if previous window was maximised desktop.setDesktopManager(new MyDesktopManager( -- 1.7.10.2