16.09.2017 Views

La deserción no es una opción

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

import java.applet.Applet;<br />

import java.awt.Font;<br />

import java.util.Date;<br />

import java.awt.Color;<br />

public class Circulos01 extends Applet<br />

implements Runnable {<br />

int x1, y1;<br />

Thread runner;<br />

public void init(){<br />

x1 = (int)(Math.random()*(getSize().width-10));<br />

y1 = (int)(Math.random()*(getSize().height-<br />

10));<br />

}<br />

public void start() {<br />

if (runner == null) {<br />

runner = new Thread(this);<br />

runner.start();<br />

}<br />

}<br />

public void update(Graphics g){<br />

125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!