Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

validate()  RSS feed

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is validate() a method of AppletContext or AppletStub? What does it do?
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither.
validate() is a method of Container. It overrides the validate() method in Component.
According to the Java Specs:

public void validate()
Validates this container and all of its subcomponents.
AWT uses validate to cause a container to lay out its subcomponents again after the components it contains have been added to or modified.

Hope this helps.
Stephanie
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Stephanie.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!