protected void populateMenu(String paramString)
  {
    try
    {
      Class localClass1 = Class.forName(paramString);

      Vector localVector = this.state.getRobotPartPatterns();
      OrderedTable localOrderedTable = new OrderedTable();

      for (int i = 0; i < localVector.size(); i++)
      {
        RobotPart localRobotPart = (RobotPart)localVector.elementAt(i);
        if (!localClass1.isInstance(localRobotPart)) {
          continue;
        }
        ImageButton localImageButton = null;
        String str = "com/templar/games/stormrunner/media/images/build/robotparts/" + localRobotPart.getIconAppearance();
        int j = localRobotPart.getSecurityLevel();

        if (j > this.state.getSecurityLevel())
        {
          localImageButton = new ImageButton(this.ir.getImage(str + "-no.gif"));
          localImageButton.setActionCommand("disabled part");
          localImageButton.addActionListener(this);
        }
        else if (this.RobotOnRamp != null)
        {
          RobotPart[] arrayOfRobotPart = this.RobotOnRamp.getRobotParts();
          Class localClass2 = localRobotPart.getClass();
          int k = 0;
          for (int m = 0; m < arrayOfRobotPart.length; m++)
          {
            if (!localClass2.isInstance(arrayOfRobotPart[m]))
            {
              continue;
            }

            localImageButton = new ImageButton(this.ir.getImage(str + "-on.gif"));

            localImageButton.setActionCommand("installed part");
            localImageButton.addActionListener(this);
            localImageButton.setVerboseEvents(true);

            k = 1;
          }

          if (k == 0)
          {
            localImageButton = new ImageButton(this.ir.getImage(str + "-ok.gif"), null, this.ir.getImage(str + "-ro.gif"));

            localImageButton.setActionCommand("available part");
            localImageButton.addActionListener(this);
            localImageButton.setVerboseEvents(true);
          }

        }
        else
        {
          localImageButton = new ImageButton(this.ir.getImage(str + "-ok.gif"), null, this.ir.getImage(str + "-ro.gif"));

          localImageButton.setActionCommand("available part");
          localImageButton.addActionListener(this);
          localImageButton.setVerboseEvents(true);
        }

        localImageButton.addImageListener(this);

        localOrderedTable.put(localImageButton, localRobotPart);
      }

      this.PartsList.resetScroll();

      this.PartsList.setContents(localOrderedTable);

      this.PartsList.repaint();

      return;
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      localClassNotFoundException.printStackTrace();
    }
  }