Patient mainFrame = new Patient();
PatientClass p = new PatientClass();
mainFrame.setSize(400, 400);
mainFrame.setTitle("Patient");
mainFrame.setVisible(true);
// All drawing done here, therefore this is the
// place to call displayDetails
// Pass an object g of class Graphics over to displayDetails
p1.displayDetails(g,30,100);