@Override protected Point getInitialSize() { Point size = super.getInitialSize(); if (size.x < MIN_WIDTH) { size.x = MIN_WIDTH; } if (size.y < MIN_HEIGHT) { size.y = MIN_HEIGHT; } return size; }
private void updatePoint(MouseEvent e) { p.x = e.x; p.y = e.y; }