• Post Reply Bookmark Topic Watch Topic
  • New Topic

getContentPane()  RSS feed

 
satishind Reddy
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In which class i can found this method. This method returns Container.
Thanks in advance
Regards
Satish
 
Kathy Rogers
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's in JFrame class (that's a javax.swing class)- in JFrames, you have to add things to the ContentPane rather than directly to the JFrame so you use this method to get the ContentPane associated with a JFrame.
Kathy
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really more appropriate to the Swing forum, so I've moved it.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also have to use getContentPane to add components to a JApplet, JInternalFrame, and JWindow. I may have missed some, but these three use getContentPane for sure.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!