You are having 2 frames in your code. Do you know which one you are closing?
The ActionListener is an inner class and you are calling dispose() which means the addclassroom frame is closed. Is that your intent?
Btw, the class name 'addclassroom' is a poor name. You should try and follow some coding conventions.
Also, you are having a common ActionListener in which you are checking the 'text' of the buttons and doing stuff. This is again not a great way of coding ActionListeners.
SCJP 1.4, OCMJEA/SCEA 5.0.
Joined: Nov 04, 2012
sorry about the naming conventions....... "addclassroom" is the name of this input form.... When I click on the "Back" button, it should close "addclassroom" to open "Classroomdetails". But this is not the case.
Again when I click on "Save" button...a new form appears while the other one still remains on the background.
Only one form should appear at a time.
I am having problem with both "Save" and "Back" button. Please help me friends.