Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Frame;

public class Main {
    public static void main() {

        Frame[] frames = Frame.getFrames();

        for (int i = 0; i < frames.length; i++) {
            String title = frames[i].getTitle();
            System.out.println(title);
            boolean isVisible = frames[i].isVisible();
            System.out.println(isVisible);
        }
    }
}