Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Component;

import javax.swing.JFrame;

public class Main {
    public static void main(String[] argv) throws Exception {

        JFrame container = new JFrame();
        // Get number of children
        int count = container.getComponentCount();

        for (int i = 0; i < count; i++) {
            Component c = container.getComponent(i);
        }
    }
}