public void actionPerformed(ActionEvent paramActionEvent)
  {
    try
    {
      if (paramActionEvent.getActionCommand().compareTo("title") == 0)
      {
        if (this.minimized)
        {
          setMinimized(false);

          return;
        }

        setMinimized(true);

        return;
      }

      if (paramActionEvent.getActionCommand().compareTo("P:down") == 0)
      {
        this.ScrollThread = new UtilityThread(50, this, getClass().getMethod("stepDown", null), false);
        this.ScrollThread.start();

        return;
      }

      if (paramActionEvent.getActionCommand().compareTo("R:down") == 0)
      {
        if (this.ScrollThread != null) {
          this.ScrollThread.politeStop();

          return;
        }
      }
      else
      {
        if (paramActionEvent.getActionCommand().compareTo("P:up") == 0)
        {
          this.ScrollThread = new UtilityThread(50, this, getClass().getMethod("stepUp", null), false);
          this.ScrollThread.start();

          return;
        }

        if (paramActionEvent.getActionCommand().compareTo("R:up") != 0) return;
        if (this.ScrollThread == null) return; this.ScrollThread.politeStop();
      }
      return;
    }
    catch (NoSuchMethodException localNoSuchMethodException)
    {
      localNoSuchMethodException.printStackTrace();
      System.err.println("PaletteSection: Some idiot programmer mistyped something in the Palette scrolling code.");
    }
  }