Results 1 to 3 of 3
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    439
    Rep Power
    6

    Default Rootpane,ContentPane,LayeredPane

    Hello to all.
    what is use of RootPane ,COntentPane,LayeredPane?
    Is this important for swing Programming?
    and Explain about That?

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    read
    How to Use Root Panes (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)

    important... depends on how complicated do you want...

    also read
    JLayeredPane (Java 2 Platform SE 5.0)
    you will know when and how to set layer of panel

    i think most people will add JComponent to contentPane of JFrame...

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    They are core concepts, but you do need to know about them, as long as you don't do anything complicated.

    The JFrame.add() method is a helper method that calls contentPane.add().

Similar Threads

  1. adding the Java Console to a ContentPane
    By naipulb in forum New To Java
    Replies: 1
    Last Post: 06-10-2008, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •