first JLayeredPane
Hello. I磎 trying to do my first JLayeredPane but as always it dosent work the first time. Right now I磎 getting the error:
"cannot find symbol - method setLayer(View,java.lang.integer,java.awt.point)"
setLayer :: (Component c, int layer, int position)
I guess this means my "View"(contains: extends JPanel and paintComponent(Graphics g)...) is not a "Component". But when I read about components it says:
"A component is an object having a graphical representation that can be displayed on the screen".
Can I convert my "viewClass" to an "Component" somehow? Or do you understand else what I might be missing?

