import javax.swing.JFrame;

public class SimpleFrame extends JFrame
{
public static void main(String [] args) throws Exception
{
SimpleFrame sf = new SimpleFrame();
sf.setSize(800, 600);
sf.setLocationRelativeTo(null);
sf.setDefaultCloseOperation(EXIT_ON_CLOSE);
sf.setTitle("Java Version: " + System.getProperty("java.version"));

sf.setVisible(true);
}
}
