class MouseEventHandler implements MouseAdapter public void mousePresse(MouseEvent evt) Rectangle bounds=getBounds(); int x=evt. getX()+bounds. x; int y=evt. getY()+bounds, y; java3 m=new java3(); m. setLocation(x, y); m. show();
static public void main(String[] args) (new java3()), show();