public class EndInTheMiddle {
    public static void main(String[] args) {
        javax.swing.JFrame frame = new javax.swing.JFrame();
        <caret>
        frame.setVisible(true);
        frame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
        frame.pack();
    }
}