public void mousePressed(MouseEvent paramMouseEvent)
    {
      if (!PaletteComponent.this.OurPalette.getDisabled())
      {
        ProgramComponent localProgramComponent = PaletteComponent.this.Sample.copy();

        Object localObject = PaletteComponent.this.realthis;
        paramMouseEvent.getPoint(); paramMouseEvent.getPoint();
        int i = 0; int j = 0;
        while (localObject != PaletteComponent.this.OurPalette.getEditor())
        {
          i += ((Component)localObject).getLocation().x;
          j += ((Component)localObject).getLocation().y;
          localObject = ((Component)localObject).getParent();
        }

        localProgramComponent.setLocation(i, j);
        PaletteComponent.this.AddTarget.add(localProgramComponent, 0);

        if (localProgramComponent.getBoundingComponent() != null)
        {
          PaletteComponent.this.AddTarget.add(localProgramComponent.getBoundingComponent(), 0);
        }

        paramMouseEvent.translatePoint(-i, -j);
        localProgramComponent.ch.mousePressed(paramMouseEvent);
      }
    }