« first day (2053 days earlier)      last day (2888 days later) » 
08:00 - 20:0020:00 - 21:00

8:05 PM
@Michael I know... it wouldn't make sense logically anyway. Generics are erased at runtime....
 
Can someone assist me with a Window Closing event?
Is there some way for me to tell which JFrame a WindowClosingEvent is being called for?
I guess it's not a big deal since I will already know which Window it will be. But oh well.
 
@Owatch A JPanel has to be put inside something, such as a JFrame. There is nothing wrong with having more than one JFrame per application.
I think there is a getSource method on the event object.
 
@Michael Yes. I am spawning a new Frame now
But, I'm not sure how to handle Window closing events. It's basically just a Viewing Panel. But has some properties I need to do clean up with once the user closes it.
I added a property in the current class that spawns it for the JFrame subclass I'm using. I've assigned it to that property once it gets spawned, and I sign the current class up as a windowListener for it.
Once the user closes that other Window, I should pick it up on the windowListener and then access its properties to clean stuff up. Hopefully this sounds good from a design standpoint?
 
8:39 PM
Oh well. I got it working as I intended.
 
fge
8:52 PM
^^^ one of the most famous pieces of classical music ever -- and always a joy to listen to :)
 
08:00 - 20:0020:00 - 21:00

« first day (2053 days earlier)      last day (2888 days later) »