g.drawPoint(r.x + 2, r.y);
g.drawPoint(r.right() - 3, r.y);
//outline main area
g.drawLine(r.x, r.y, r.right() - 1, r.y);
g.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom() - 1);
g.drawLine(r.x, r.y, r.x, r.bottom() - 1);
g.drawPoint(r.x, r.y);
g.drawPoint(r.right() - 1, r.y);