top.show();
top.setVisible(true);
    public static void main(String[] args) {        javax.swing.JFrame top = new javax.swing.JFrame("Text Editor");        top.addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                System.exit(0);            }        });                TextPanel tp = new TextPanel();        top.getContentPane().add(tp);        top.setBounds(100,100,600,400);        try {            // tp.setBytes("ABCDEFGHIJKLMNOP\nABCDEFGHIJKLMNOP".getBytes());            tp.setEditable(true);            top.show();        } catch (Exception e) {            e.printStackTrace();        }    }