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 and

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact