LoudHoward
Technical User
I am writing a gui app for an assignment at uni. Firstly it has a root window which has buttons to access the aspects of the program (in this case to search the database, list the contents of the db, and do administrative tasks to db). When a button is clicked the event listenter catches the click and creates a new instance of the class (which I have as an inner class atm) that will create the window for that task (e.g search). Now having implemented in this way is the search window considered a child of the root window?
Now for the second question. Each child window will have a close button as well as the close button provided as part of the frame. To get the window to close and thus return to the root window, I understand that I have to use WindowAdapter, but what is the call to kill the child window and return to the root.
I using awt and I am not using threads or anything else special.
Thankyou
LoudHoward
Now for the second question. Each child window will have a close button as well as the close button provided as part of the frame. To get the window to close and thus return to the root window, I understand that I have to use WindowAdapter, but what is the call to kill the child window and return to the root.
I using awt and I am not using threads or anything else special.
Thankyou
LoudHoward