I need to have -- not only a list of my own modeless windows -- but I need them in order. So would I have to keep some kind of list (probably a Collection) and keep track myself the current order?
I am implementing the following commands:
closeAll() saveAll() bringAllToFront() and quit() (which calls closeAll()
closeAll() need to close my modeless windows from front-to-back order.
Joined: Mar 22, 2005
Yes, you'd need to keep track of the window ordering. That could change a) whenever a new window is opened, b) whenever a window is closed and c) whenever the user clicks on a window to bring it to the front.
A LinkedList with its implied ordering might work well for this.