/Users/petercappello/NetBeansProjects/56-2014/56-2014-lab4/src/App.java |
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
@author
public class App extends JFrame
{
private static final int HEIGHT = 230;
private static final int WIDTH = 450;
private final Controller controller;
App()
{
controller = new Controller();
setTitle( "Printer Control Panel" );
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
add( controller, BorderLayout.CENTER );
Dimension dimension = new Dimension( WIDTH, HEIGHT );
setSize( dimension );
setPreferredSize( dimension );
setVisible( true );
}
Run the Graphics Virtual Machine application.
@param
public static void main( String[] args ) { App app = new App(); }
}