FileDocCategorySizeDatePackage
MessagePassing.javaAPI DocExample1932Wed Oct 24 16:38:32 BST 2001myprojects.messagepassing

MessagePassing

public class MessagePassing extends Frame

Fields Summary
private Consultant
c1
private Patient
p1
Constructors Summary
public MessagePassing()

	
	  
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				dispose();
				System.exit(0);
			}
		});
		
		
		c1.setName("Mr Important Person");
		p1.setName("Mr Joe Bloggs");
		c1.setPatient(p1);
		p1.setConsultant(c1);
		c1.displayDetails();
		p1.displayDetails();
	
Methods Summary
public static voidmain(java.lang.String[] args)

		System.out.println("Starting MessagePassing...");
		MessagePassing mainFrame = new MessagePassing();
		mainFrame.setSize(400, 400);
		mainFrame.setTitle("MessagePassing");
		mainFrame.setVisible(true);