Now is the part in Bold the one not working, when I add the "extends Applet"
to my class, I lost the import java.net.URL, why is that, there is a way to solve this?
package classes;
import java.awt.*;
import java.net.URL;
import java.applet.Applet;
public class Persona extends Applet {
//Colaboradores Internos
URL url = new URL("c:/Imagen/placa.gif"); Image foto;
String nombre;
String apellido;
String sector;
String cargo;
String horaEntrada;
String horaSalida;
char estado;
Time fyHActual = new Time();
//Contructor
public Persona (){
nombre = "Juan";
apellido = "Tibaldi";
sector = "Sistemas";
cargo = "Soporte Tecnico de Distrito Sur";
horaEntrada = fyHActual.now();
horaSalida = fyHActual.now();
estado = 'V';
foto = getImage(url);
}