Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.Window;

public class Main {
    public static boolean allWindowsClosed() {
        for (Window window : Window.getWindows()) {
            if (window.isVisible()) {
                return false;
            }
        }
        return true;
    }
}