I'm trying to add a layer to WorldWind Java (version 1.2) situated on a Netbeans Platform TopComponent (using netbeans 7.0). The TopComponent is in Editor mode, and for WWJ I use WorldWindowGLCanvas which is the single swing component on the TopComponent and it is placed with BorderLayout.CENTER. If I add the layers using the constructor all works well, I can see the layers fine. If I add the layer using swing controls (eg a button) the layer gets added to the layer list but it is not rendered. This happens for both WMS and Renderable layer. Same process on a pure swing application works fine which leads me to believe that the rendering process in WWJ is somehow conflicting with the TopComponent painting. Any help with be greatly appreciated.
相关问题
- Step by step instructions for getting cppunit up a
- org.jdesktop.application package doesn't exist
- Don't want netbeans debugger to go to disassem
- using rmic in netbeans
- netbeans unable to resolve identifier c_str
相关文章
- Java: Look and Feel
- C++ compiler error in netbeans
- How to escape @ sign inside JSDoc comments in NetB
- php: auto indent the whole code?
- Create src/test/resources in Maven Netbeans 8.x wi
- Stop Tomcat when run inside of Netbeans
- Failed to execute goal org.codehaus.mojo:exec-mave
- Can build, but can't run C code in netbeans (b
I've set up a demo using NetBeans Platform (7.0.1) with
gov.nasa.worldwind.awt.WorldWindowGLCanvas
andgov.nasa.worldwindx.examples.LayerPanel
Initialization Code:
This works the same as it does running the sample as a stand alone so I would say that the problem does not lie in the NetBeans Platform. Without any code it's hard to say what's going wrong.
Note that the
gov.nasa.worldwind.awt.WorldWindowGLCanvas
is not a Swing component but a heavy weight component. This is irrelevant to your question but I couldn't help but point it out. The Swing component isgov.nasa.worldwind.awt.WorldWindowGLJPanel
Edit: I realize my answer is not very helpful, so to remedy that I would add a suggestion. You could try to invalidate the TopComponent and call repaint whenever you need it to render the new layer.