-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
29 lines (26 loc) · 741 Bytes
/
Main.java
File metadata and controls
29 lines (26 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import Movimientos.*;
import javax.swing.JFrame;
public class Main
{
public static void main(String arg[]) throws InterruptedException
{ JFrame marco = new JFrame("Monitor");
Robot cop = new Robot(200,200,'R');
Manejador control = new Manejador(cop);
marco.add(control);
marco.setSize(600, 600);
marco.setResizable(false);
marco.setVisible(true);
marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
/*int i;
while(true)
{ for(i=0;i<10;i++)
{ cop.arriba();
Thread.sleep(1000);
}
for(;i>0;i--)
{ cop.abajo();
Thread.sleep(1000);
}
}*/
}
}