- fix invisible gui node in new swing panel

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8341 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent fb48e4c410
commit df32c74d53
  1. 2
      sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java

@ -147,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(true);
panel.attachTo(viewPort, guiViewPort, overlayView); panel.attachTo(viewPort, overlayView, guiViewPort);
((AwtPanelsContext) getContext()).setInputSource(panel); ((AwtPanelsContext) getContext()).setInputSource(panel);
} }
return panel; return panel;

Loading…
Cancel
Save