Extending Panel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shweta Arora
    New Member
    • Nov 2006
    • 1

    #1

    Extending Panel

    I want to work on a panel..
    Foe that i have created a class that extends panel. And object of this class is made in another class that extends frame.. Now how to proceed.. After doin this Panel is not visible.. only frame is visible..

    Kindly help..
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Shweta Arora
    I want to work on a panel..
    Foe that i have created a class that extends panel. And object of this class is made in another class that extends frame.. Now how to proceed.. After doin this Panel is not visible.. only frame is visible..

    Kindly help..
    When you create the frame, also create an object of the class that extends the Panel and add it to the frame before calling setVisible on the frame

    Comment

    Working...