From 9df89c56a061874a05cfa53fec519a86be023532 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 31 Jan 2013 22:53:20 +0000 Subject: [PATCH] SDK - use setExtendedState to set window minimized state - fix Blender start return value being always "false" git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10274 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- sdk/jme3-blender/src/com/jme3/gde/blender/BlenderTool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/jme3-blender/src/com/jme3/gde/blender/BlenderTool.java b/sdk/jme3-blender/src/com/jme3/gde/blender/BlenderTool.java index 601d9c293..44dca5741 100644 --- a/sdk/jme3-blender/src/com/jme3/gde/blender/BlenderTool.java +++ b/sdk/jme3-blender/src/com/jme3/gde/blender/BlenderTool.java @@ -374,7 +374,7 @@ public class BlenderTool { } final Frame mainWin = WindowManager.getDefault().getMainWindow(); assert (mainWin != null); - mainWin.setState(Frame.ICONIFIED); + mainWin.setExtendedState(Frame.ICONIFIED); Runnable r = new Runnable() { public void run() { try { @@ -399,15 +399,15 @@ public class BlenderTool { } } catch (Exception ex) { Exceptions.printStackTrace(ex); + successful.set(false); } finally { blenderOpened.set(false); java.awt.EventQueue.invokeLater(new Runnable() { public void run() { - mainWin.setState(Frame.NORMAL); + mainWin.setExtendedState(Frame.NORMAL); mainWin.requestFocus(); } }); - successful.set(false); } } };