|
|
@ -50,6 +50,7 @@ import com.jme3.scene.Spatial.CullHint; |
|
|
|
import com.jme3.system.AppSettings; |
|
|
|
import com.jme3.system.AppSettings; |
|
|
|
import com.jme3.system.awt.AwtPanel; |
|
|
|
import com.jme3.system.awt.AwtPanel; |
|
|
|
import com.jme3.system.awt.AwtPanelsContext; |
|
|
|
import com.jme3.system.awt.AwtPanelsContext; |
|
|
|
|
|
|
|
import com.jme3.system.awt.PaintMode; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
@ -146,7 +147,7 @@ public class SceneApplication extends Application implements LookupProvider, Loo |
|
|
|
|
|
|
|
|
|
|
|
public AwtPanel getMainPanel() { |
|
|
|
public AwtPanel getMainPanel() { |
|
|
|
if (panel == null) { |
|
|
|
if (panel == null) { |
|
|
|
panel = ((AwtPanelsContext) getContext()).createPanel(true); |
|
|
|
panel = ((AwtPanelsContext) getContext()).createPanel(PaintMode.Accelerated); |
|
|
|
panel.attachTo(viewPort, overlayView, guiViewPort); |
|
|
|
panel.attachTo(viewPort, overlayView, guiViewPort); |
|
|
|
((AwtPanelsContext) getContext()).setInputSource(panel); |
|
|
|
((AwtPanelsContext) getContext()).setInputSource(panel); |
|
|
|
} |
|
|
|
} |
|
|
|