I have made a hospital management system ....its GUI is creating some problems .... I have a container at the top level with Borderlayout ... a combo box is on its north ... and a JPanel is on its center. Combo box contains two items ... Doctor and Patient. the biodata of the doctor is in a seperate JPanel and patient is in another JPanel.
This is what I wanted to do ... when the user selects the doctor from the JPanel the GUI should display the doctor Panel ... and when the user selects the patient panel the GUI should display the patient panel ... but .....
The way its going is that ... the patient panel is displaying while doctor panel is not ... I dont know whats the problem ... Please help.
attaching the files ... see for yourself.