top.show();
top.setVisible(true);
    public static void main(String[] args) throws Exception {        javax.swing.JFrame top = new javax.swing.JFrame("XML Editor");        top.addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                System.exit(0);            }        });                byte[] bytes;        if (args.length > 0) {            java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();            InputStream is = new java.io.FileInputStream(args[0]);            byte[] buff = new byte[1024];            int got;            while ((got = is.read(buff)) > 0) {                baos.write(buff,0,got);            }            bytes = baos.toByteArray();        } else {            bytes = "<xml><abc>def</abc></xml>".getBytes();        }        XMLPanel xp = new XMLPanel();        top.getContentPane().add(xp);        top.setBounds(100,100,600,400);        try {            xp.setBytes("text/xml",bytes);            xp.setEditable(true);            top.show();        } catch (Exception e) {            e.printStackTrace();        }    }