Validation « Container « Java Swing Q&A





1. What does Container.validate() method do?    stackoverflow.com

There seems to be many methods in Java awt Container class that are related to validate. Apparently they don't do data validation. Is it useful for a Swing developer ...

2. Why won't .validate() update the contentPane in this code?    stackoverflow.com

I'm having trouble with a contentPane. Here's the code in question:

public void graph() {
    JFrame frame = new JFrame("Graph");
    Graph[] graphs = new Graph[timeSlices];
 ...