Frame f = new Frame();
TextArea c = new TextArea("", 2, 20, TextArea.SCROLLBARS_VERTICAL_ONLY);
add(c);
f.add(this);
f.pack();
f.show();
Rectangle bounds = c.getBounds();
Insets i = f.getInsets();
Point loc = f.getLocationOnScreen();
loc.x += i.left + bounds.x;
loc.y += i.top + bounds.y;