code: public void init(Object parent, Object obj)
      {
          super.init(parent, obj);
          /** Create the JTreeModel. */
          BaseApplet applet = (BaseApplet)obj;
          RemoteSession parentSessionObject = null;//?this.getTourCalendarScreen().getRemoteSession();
          RemoteSession remoteSession = applet.makeRemoteSession(parentSessionObject, "com.tourgeek.tour.product.remote.location.LocationSearchSession");
  
          String strListName = CONTINENT;
          String strRecordName = ROOT;
          DefaultMutableTreeNode root = new DynamicTreeNode(new NodeData(applet, remoteSession, strListName, null, strRecordName));
          m_treeModel = new DefaultTreeModel(root);
  
          /** Create the tree. */
          m_tree = new JTree(m_treeModel);
          m_tree.setOpaque(false);
          MouseListener ml = new MouseAdapter() {
              public void mouseClicked(MouseEvent e) {
                  int selRow = m_tree.getRowForLocation(e.getX(), e.getY());
                  TreePath selPath = m_tree.getPathForLocation(e.getX(), e.getY());
                  if(selRow != -1) {
                      if(e.getClickCount() == 1) {
                          mySingleClick(selRow, selPath);
                      }
                      else if(e.getClickCount() == 2) {
                          myDoubleClick(selRow, selPath);
                      }
                  }
              }
          };
          m_tree.addMouseListener(ml);
  
          m_tree.setCellRenderer(new TreeNodeCellRenderer());
          /** Put the Tree in a scroller. */
          JScrollPane sp = new JScrollPane();
          sp.setPreferredSize(new Dimension(300, 300));
          sp.getViewport().add(m_tree);
          
          /** And show it. */
          this.setLayout(new BorderLayout());
          this.add(BorderLayout.CENTER, sp);
      }
docs: The init() method is called by the AWT when an applet is first loaded or
  reloaded.  Override this method to perform whatever initialization your
  applet needs, such as initializing data structures, loading images or
  fonts, creating frame windows, setting the layout manager, or adding UI
  components.