- 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
3.0
nor..67 12 years ago
parent b0b818dc12
commit 9df89c56a0
  1. 6
      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);
}
}
};

Loading…
Cancel
Save