// purpose: set up and display a window import javax.swing.*; import java.awt.*; public class DisplayWindow { // method main(): program starting point public static void main( String[] args ) { // get a window JFrame window = new JFrame( "My Display" ); window.setSize( 150, 125 ); // set window background color to black Container pane = window.getContentPane(); pane.setBackground( Color.BLACK ); // set up is complete, make window visible window.setVisible( true ); } }