How do I prevent Swing components being drawn over by my JNI JAWT canvas? Normal AWT components are fine and draw over the top, but not my Swing version.

Davanum Srinivas

Swing controls are light-weight, which means that they don't have any native peers. Mixing AWT (heavy-weight) and Swing controls is not recommended by Sun. If you make sure that you place all Swing controls inside a java.awt.Panel (which is heavy-weight), you will not run into this problem. More information can be found at http://java.sun.com/products/jfc/tsc/articles/mixing/index.html and http://java.sun.com/docs/books/tutorial/uiswing/start/swingIntro.html#awt