X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FFinder.java;h=2932707c7a3e738243662ce550e2e5332ab83447;hb=304e64fb34b32659be1bbfd39fb4e15b2f79586e;hp=93dcadf2c267bed757cfe3962ccb886d852c89a3;hpb=61ff8fb4efa315c35149c9d11850d99e3d00c441;p=jalview.git diff --git a/src/jalview/gui/Finder.java b/src/jalview/gui/Finder.java index 93dcadf..2932707 100755 --- a/src/jalview/gui/Finder.java +++ b/src/jalview/gui/Finder.java @@ -139,7 +139,7 @@ public class Finder extends GFinder { title += " " + scope; } - Desktop.addInternalFrame(frame, title, MY_WIDTH, MY_HEIGHT); + Desktop.addInternalFrame(frame, title, Desktop.FRAME_MAKE_VISIBLE, MY_WIDTH, MY_HEIGHT, Desktop.FRAME_ALLOW_RESIZE, Desktop.FRAME_ALLOW_ANY_SIZE); frame.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT)); searchBox.getComponent().requestFocus(); } @@ -195,7 +195,7 @@ public class Finder extends GFinder */ boolean getFocusedViewport() { - if (focusFixed || Desktop.desktop == null) + if (focusfixed || Desktop.getDesktopPane() == null) { if (ap != null && av != null) { @@ -207,7 +207,7 @@ public class Finder extends GFinder } // now checks further down the window stack to fix bug // https://mantis.lifesci.dundee.ac.uk/view.php?id=36008 - JInternalFrame[] frames = Desktop.desktop.getAllFrames(); + JInternalFrame[] frames = Desktop.getDesktopPane().getAllFrames(); for (int f = 0; f < frames.length; f++) { JInternalFrame alignFrame = frames[f];