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
This commit is contained in:
parent
b0b818dc12
commit
9df89c56a0
@ -374,7 +374,7 @@ public class BlenderTool {
|
|||||||
}
|
}
|
||||||
final Frame mainWin = WindowManager.getDefault().getMainWindow();
|
final Frame mainWin = WindowManager.getDefault().getMainWindow();
|
||||||
assert (mainWin != null);
|
assert (mainWin != null);
|
||||||
mainWin.setState(Frame.ICONIFIED);
|
mainWin.setExtendedState(Frame.ICONIFIED);
|
||||||
Runnable r = new Runnable() {
|
Runnable r = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
@ -399,15 +399,15 @@ public class BlenderTool {
|
|||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
|
successful.set(false);
|
||||||
} finally {
|
} finally {
|
||||||
blenderOpened.set(false);
|
blenderOpened.set(false);
|
||||||
java.awt.EventQueue.invokeLater(new Runnable() {
|
java.awt.EventQueue.invokeLater(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
mainWin.setState(Frame.NORMAL);
|
mainWin.setExtendedState(Frame.NORMAL);
|
||||||
mainWin.requestFocus();
|
mainWin.requestFocus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
successful.set(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user