public int getMaxCount() {
return 3;
}
public Point getLocation() {
Document doc = frame.getDocument();
Editor editor = doc.getEditor();
JComponent image = editor.getImage();
Point loc = image.getLocationOnScreen();
Dimension size = image.getSize();
Point p = new Point(
loc.x + size.width - 200, loc.y + size.height - 200