Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Set smart revalidate to true to incur less overhead when the method
     * {@link Component#revalidate()} is called.
     * <br>Revalidate calls {@link Container#isValidateRoot()} which 
     * normally results in calling {@link Component#validate()} for the top Windows/Frame/Dialog container.
     * With smart revalidate the "validate root" can be a scroll-pane for example
     * (see also {@link JComponent#isValidateRoot()}.
     */
    public static void smartRevalidate(boolean beSmart) {
        System.setProperty("java.awt.smartInvalidate", Boolean.toString(beSmart));
    }
}