Cast jzy3d.canvas to awt.component
问题 I need cast the jzy3d canvas to java.awt.component, I want to display the chart in my frame with JCombobox and button but when I want to cast canvas to component, the program was dropped. Thank you for your answers. I have try this and don't help me. Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.jzy3d.plot3d.rendering.canvas.VoidCanvas cannot be cast to java.awt.Component at cz.bia.Launcher.lambda$setComponents$0(Launcher.java:63) at java.awt.Button