Clay (V1): A Frame
CS2 Course Summary Slide 5

The first program in the sequence of programs designed to guide students through a programming experience featuring components and events is shown below. One must begin somewhere!


Demo

Code

package clay1;

import java.awt.*;

public class Main {
    
    public Main() {
    }
    
    public static void main(String[] args) {
        Frame frame = new Frame("Clay");
        frame.setSize(400,200);
        frame.setVisible(true);
    }
    
}