SDK:
- fix in nifty cleanup threading git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8729 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
57b64fa8d4
commit
96c6fa5944
@ -73,7 +73,7 @@ public class NiftyPreviewPanel extends PanelView {
|
|||||||
toolBar.setPreferredSize(new Dimension(10000, 24));
|
toolBar.setPreferredSize(new Dimension(10000, 24));
|
||||||
toolBar.setMaximumSize(new Dimension(10000, 24));
|
toolBar.setMaximumSize(new Dimension(10000, 24));
|
||||||
toolBar.setFloatable(false);
|
toolBar.setFloatable(false);
|
||||||
JComboBox comboBox = new JComboBox(new String[]{"640x480", "480x800","800x480", "800x600", "1024x768", "1280x720"});
|
JComboBox comboBox = new JComboBox(new String[]{"640x480", "480x800", "800x480", "800x600", "1024x768", "1280x720"});
|
||||||
comboBox.addItemListener(new ItemListener() {
|
comboBox.addItemListener(new ItemListener() {
|
||||||
|
|
||||||
public void itemStateChanged(ItemEvent e) {
|
public void itemStateChanged(ItemEvent e) {
|
||||||
@ -273,6 +273,12 @@ public class NiftyPreviewPanel extends PanelView {
|
|||||||
|
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
offPanel.stopPreview();
|
offPanel.stopPreview();
|
||||||
|
SceneApplication.getApplication().enqueue(new Callable<Object>() {
|
||||||
|
|
||||||
|
public Object call() throws Exception {
|
||||||
nifty.exit();
|
nifty.exit();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user