p.y -= d.height*2;
p.y -= d.height;
  private Point adjustLocation(Point p, Component c, Dimension d)  {    if (p.x + d.width > c.getWidth())      p.x -= d.width;    if (p.x < 0)      p.x = 0;    if (p.y + d.height < c.getHeight())      p.y += d.height;    if (p.y + d.height > c.getHeight())      p.y -= d.height*2;        return p;  }