Re: using JLayeredPane



Monique Y. Mudama wrote:
Is it possible to successfully add it to another JComponent, or must
you set it as the contentPane of a JFrame?

Must not.
http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html

"...Every Swing container that has a root pane — such as JFrame, JApplet, JDialog, or JInternalFrame — automatically has a layered pane. ..."

.



Relevant Pages

  • Re: BoxLayout bug in 1.5?
    ... "xarax" wrote in message ... > calling setLayout() on the contentPane, ... > the JFrame. ...
    (comp.lang.java.programmer)
  • Re: Problem repainting
    ... You're painting directly to the JFrame, ... You need to either paint to the contentPane or better yet you should create ... > entire window and switch back, ... > public class FooFrame extends JFrame ...
    (comp.lang.java.programmer)
  • jframe and Callbacks
    ... What i am trying to accomplish is to add some swing-elements ... to the contentpane of a jframe via a callback ...
    (comp.soft-sys.matlab)
  • GUI freezes after I change contentPane in an ActionListener
    ... my GUI freezes if I try to replace a contentPane of a JFrame from the ... actionListener of one of the components in the current contentPane. ... button remain pressed and the gui freezes. ...
    (comp.lang.java.gui)
  • Re: Using self made Component
    ... using JFrame and not addas you would for Frame. ... And the child will be added to the contentPane. ... where the documentation states that when "using JFrame you need to add the child to the JFrame's ...
    (comp.lang.java.programmer)