FileDocCategorySizeDatePackage
Patient.javaAPI DocExample974Sun Oct 14 18:10:32 BST 2001None

Patient

public class Patient extends JFrame

Fields Summary
private PatientClass
p1
Constructors Summary
public Patient()

	
	 
	
		// Default constructor
		addWindowListener(new WindowAdapter()
		{
			public void windowClosing(WindowEvent e)
			{
				dispose();
				System.exit(0);
			}
		});
		// Instantiate an object of PatientClass type
		//p1 = new PatientClass();
		p1.setDetails("Bill Clinton",55,"WM223344C");
	
Methods Summary
public static voidmain(java.lang.String[] args)

		Patient mainFrame = new Patient();
		PatientClass p = new PatientClass();
		mainFrame.setSize(400, 400);
		mainFrame.setTitle("Patient");
		mainFrame.setVisible(true);
	
public voidpaint(java.awt.Graphics g)

		// 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);