code: public Packer like(final Component comp) {
          // Get a copy of the components constraints
          gc = getConstraints(comp);
          if (gc == null) {
              throw new IllegalArgumentException(comp + " has no existing constraints");
          }
          setConstraints(comp, gc);
          return this;
      }
docs: Copy the passed component's contraints as the current constraints. This
  is typically used to reuse constraints set on another component. Be
  careful with this method as it does not protect you from cascading reuse
  issues. This method uses {@link GridBagLayout#getConstraints(Component)} to get a
  copy of the constraints for <code>comp</code>.
  
  @param comp
  the component to get the constraints
  
  <pre>
  Packer pk = new Packer(pan);
  pk.pack(lab).gridx(0).inset(10, 10, 10, 10);
  pk.pack(text).like(lab).gridx(1).fillx(); // same insets
  </pre>