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?

[645 byte] By [Hunter78a] at [2007-11-27 6:54:49]
# 1
Post in the Swing forum :)
_helloWorld_a at 2007-7-12 18:29:58 > top of Java-index,Java Essentials,New To Java...
# 2
ok, thanks
Hunter78a at 2007-7-12 18:29:58 > top of Java-index,Java Essentials,New To Java...