top.show();
top.setVisible(true);
    public static void main(String[] args) {        org.owasp.webscarab.model.Response response = new org.owasp.webscarab.model.Response();        try {            ByteArrayOutputStream baos = new ByteArrayOutputStream();            /*            FileInputStream fis = new FileInputStream("/home/rdawes/exodus/HowTo.html");            byte[] buff = new byte[1024];            int got = 0;            while ((got = fis.read(buff)) > 0) {                baos.write(buff, 0, got);            }            content = baos.toByteArray();             */            String filename = "/home/rogan/workspace/webscarab/test/data/index-resp";            if (args.length == 1) {                filename = args[0];            }            java.io.FileInputStream fis = new java.io.FileInputStream(filename);            response.read(fis);        } catch (Exception e) {            e.printStackTrace();            System.exit(0);        }                javax.swing.JFrame top = new javax.swing.JFrame("Content Pane");        top.getContentPane().setLayout(new java.awt.BorderLayout());        top.addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                System.exit(0);            }        });                javax.swing.JButton button = new javax.swing.JButton("GET");        final ContentPanel cp = new ContentPanel();        top.getContentPane().add(cp);        top.getContentPane().add(button, java.awt.BorderLayout.SOUTH);        button.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                System.out.println(new String(cp.getContent()));            }        });        top.pack();        // top.setSize(cp.getPreferredSize());        // top.setBounds(100,100,600,400);        top.show();        try {            cp.setContentType(response.getHeader("Content-Type"));            cp.setEditable(false);            cp.setContent(response.getContent());        } catch (Exception e) {            e.printStackTrace();        }    }