import java.awt.*; public class Raamike4{ public static void main(String argumendid[]) throws Exception{ int x=0, y=150; Frame f=new Frame("Esimene"); f.setSize(200, 200); f.setVisible(true); while(x<300){ f.setLocation(x, y); Thread.sleep(100); x=x+5; } } }