Hi have a Swing
User Interface composed by 4 different plots (extensions of javax.swing.JPanel
). One of these plots is built using jzy3d 1.0.0
library and returns a component of type CanvasNewtAwt
(extension of java.awt.Panel
). So that I have a java.awt.Panel
inside my usual javax.Swing.Panel
.
The problem is that when I load the glass pane, since it is an instance of javax.swing.JPanel
, the AWT
component remain on top of it.
Is there any way to avoid this?
If I create a new glass pane which extends java.awt.Panel
I'm able to cover all of the plots but not able to make the glass pane translucent. So If I fix the translucency problem (using a swing
panel), I'm not able to cover the awt
component, but If I use an awt
panel, I have all my frame covered (very unpleasant result). Big deal :)
NOTE: I know that older versions of
jzy3d
allow to createSwing
plots, butSwing
classes are deprecated in newer versions, since they are full of bugs, and replaced withNewt
components.