Currently, ListOfPatientsView opens a new window when it is called. This should be changed so that the view is swapped within the same window, by removing the frame instance attribute and making ListOfPatientsView extend JPanel.
[x] ListOfPatientsView extends JPanel
[x] Remove the frame instance attribute
[x] Change all mentions of panel to this since ListOfPatientsView is now a JPanel
Currently,
ListOfPatientsView
opens a new window when it is called. This should be changed so that the view is swapped within the same window, by removing theframe
instance attribute and makingListOfPatientsView
extendJPanel
.ListOfPatientsView
extendsJPanel
frame
instance attributethis
sinceListOfPatientsView
is now aJPanel
panel
instance attribute