posted 21 years ago
OK... looks like what I did was set a DesktopManager like the following on my JDesktopPane...
I added a property to my JDesktopPane also, I called it "OPEN_FRAMES_PROPERTY" and it returned an array of Objects... (this could be the frames themselves, or just the names of frames, depending on what you need to do...)
Then I created a TaskBar class that was a PropertyChangeListener to the JDesktopPane and got events whenever a frame was added or removed. When I got an event, I would pass the actionCommand( the name of the button and the name of the frame ) to a method like the following...
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.