overriding dilemma



Hello i am trying to get my rmi server to work, finally i got the
constructor working, but now i have another problem with the Gui..
I have to extend UnicastRemoteObject in my implementation file(Patient) but
Patient already extends Datamodel that makes the database connection. So i
extended UnicastRemoteObject in Datamodel and achieve the same, and i
thought my problems were solved. But its not true. Now i get error messenges
in the Gui,that has a constrctor for Patient that i have to throw an
exeption. When i do that it sais the the method getData can not be override
in another class called Viewmodel.

I hope im making sence here, is it possible to send the 2 files? or can
someone help me how to solve this?

PATIENTGUI

void getEnToonData() throws java.rmi.RemoteException // here i get the
override error message
{
Patient patient = new
Patient(Integer.parseInt(sleutelVeld.getText()));

if (patient.getNaam().length() == 0)
schoonScherm();
else
{
sleutelVeld.setText(Integer.toString(patient.getPatientNummer()));
sofiNummerVeld.setText(Integer.toString(patient.getSofinummer()));
verzekeringsMaVeld.setText(patient.getVerzekeringsma());
polisNummerVeld.setText(Integer.toString(patient.getPolisnummer()));
naamVeld.setText(patient.getNaam());
adresVeld.setText(patient.getAdres());
postcodeVeld.setText(patient.getPostcode());
woonplaatsVeld.setText(patient.getWoonplaats());
gebDatumVeld.setText(patient.getGebDatum());
}
}


Method in ViewModel

void toonButton_actionPerformed(ActionEvent e)
{
setStatus("");
getEnToonData();
}


Thanks

Irlan


.