Frame0.java
package view;

import javax.swing.*;  // to use JFrame.

/**
 * Minimal code to create a JFrame with a title and a window event
 * listener to call on System.exit() and force termination of the main
 * application that creates this JFrame.
 * @author D.X. Nguyen
 */
public class Frame0 extends AFrame {

    public Frame0(String title) {
        // Always call the superclass's constuctor:
        super(title);
    }

    protected void initialize() {
        // Do nothing!
    }
}

Frame0App.java
package app;

import javax.swing.*;
import view.*;

/**
 * A GUI application that simply brings a Frame0 object "into life".
 */
public class Frame0App {

    private static void createAndShowGUI() {
	JFrame f = new Frame0("A blank Frame0");
	f.setVisible(true);
    }

    public static void main(String[] args) {
	SwingUtilities.invokeLater(new Runnable() {
	    public void run() {
		createAndShowGUI();
	    }
	});     
    }
}