예제 #1
0
  @Override
  protected void layout() {

    super.layout();

    bg.x = x;
    bg.y = y;
    bg.size(width, height);
  }
    @Override
    protected void layout() {
      super.layout();

      bg.x = x;
      bg.y = y;
      bg.size(width, height);

      slot.setRect(x + 2, y + 2, width - 4, height - 4);
    };