import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class copy extends JFrame {
public copy (){
super( "copy area " );
setSize( 280, 235 );
setVisible( true );
}
public void paint( Graphics g ){
super.paint(g);
g.setColor( Color.magenta );
g.drawOval( 110, 110, 50, 50 );
g.copyArea(110,110,60,60,70,0);
g.copyArea(110,110,60,60,-70,0);
g.copyArea(110,110,60,60,0,-70);
g.copyArea(110,110,60,60,0,70);
}
public static void main( String args[] ){
copy app = new copy ();
appDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
}
}