aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes validate() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "validate() method" Watch "validate() method" New topic
Author

validate() method

Tom Graziose
Ranch Hand

Joined: Aug 24, 2000
Posts: 40
Hi, What exactly does validate() do? I commented it out in various classes with no noticable change to the display.
Thanks,
Tom
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Your question is missing the Class that you're talking about. Even though some of us may be able to guess it, it is better to be clear from the outset.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Tom Graziose
Ranch Hand

Joined: Aug 24, 2000
Posts: 40
Sorry, it's in the Container class
Thanks Tony!
Tom
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Tom,
<code>validate()</code> forces the Container to layout it's components. If the Container is not in an invalid state ie no change since last layout, the method call is ignored.
Hope that helps.
Jane


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Tom Graziose
Ranch Hand

Joined: Aug 24, 2000
Posts: 40
Thanks Jane ! I'll have to experiment with it.
-Tom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validate() method