code: private void initComponents(URL baseurl) 
      {
          documentScroll = new javax.swing.JScrollPane();
          
          //Create the browser canvas
          browserCanvas = new BrowserCanvas(docroot, decoder, new java.awt.Dimension(1000, 600), baseurl);
  
          //A simple mouse listener that displays the coordinates clicked
          browserCanvas.addMouseListener(new MouseListener() {
              public void mouseClicked(MouseEvent e)
              {
                  System.out.println("Click: " + e.getX() + ":" + e.getY());
              }
              public void mousePressed(MouseEvent e) { }
              public void mouseReleased(MouseEvent e) { }
              public void mouseEntered(MouseEvent e) { }
              public void mouseExited(MouseEvent e) { }
          });
          
          getContentPane().setLayout(new java.awt.GridLayout(1, 0));
  
          setTitle("CSSBox Browser");
          addWindowListener(new java.awt.event.WindowAdapter() {
              public void windowClosing(java.awt.event.WindowEvent evt) {
                  exitForm(evt);
              }
          });
  
          documentScroll.setViewportView(browserCanvas);
          getContentPane().add(documentScroll);
          pack();
      }
docs: Creates and initializes the GUI components
  @param baseurl The base URL of the document used for completing the relative paths