import javax.swing.*; //import AWTBPEvents.*; import NonAWTBPEvents.*; import java.awt.*; /** The window for the patient panel * * @author Stuart Hansen * @version February 2009 */ public class PatientFrame extends JFrame { //Create the frame and add a Patient Panel to it public PatientFrame(Patient pat) { super(); setBounds(100, 100, 350, 250); PatientPanel ppan = new PatientPanel(pat); Container c = this.getContentPane(); c.setLayout(null); c.add(ppan); setTitle(pat.getName()); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } }