• Post Reply Bookmark Topic Watch Topic
  • New Topic

frame.getContentPane()

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


What is the problem about this line:

 
Ifteqar Ahmed
Ranch Hand
Posts: 85
Java Linux MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Try just frame.add() method
 
Darryl Burke
Bartender
Posts: 5153
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the API. The add(String, Component) method (inherited from Container) is documented as
This method is obsolete as of 1.1. Please use the method add(Component, Object) instead.

 
Mohamed Sanaulla
Bartender
Posts: 3166
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the later versions of JDK, you need not do a getContentPane().add() instead you can directly invoke- add() on the container component.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!