panel.setViewportComponent(scroll); panel.setJScrollPane(scroll);
    public AboutBox(String text, String url) {        super();        u.p("starting the about box");        setTitle(text);        HTMLPanel panel = new HTMLPanel();        int w = 400;        int h = 500;        panel.setPreferredSize(new Dimension(w,h));                scroll = new JScrollPane(panel);        scroll.setVerticalScrollBarPolicy(scroll.VERTICAL_SCROLLBAR_ALWAYS);        scroll.setHorizontalScrollBarPolicy(scroll.HORIZONTAL_SCROLLBAR_NEVER);        scroll.setPreferredSize(new Dimension(w,h));        panel.setViewportComponent(scroll);        panel.setJScrollPane(scroll);        getContentPane().add(scroll,"Center");        close_button = new JButton("Close");        getContentPane().add(close_button,"South");        close_button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent evt) {                setVisible(false);                go = false;            }        });                try {            loadPage(url,panel);        } catch (Exception ex) {            u.p(ex);        }        pack();        setSize(w,h);        Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();        setLocation((screen.width-w)/2,(screen.height-h)/2);    }