Hello I have a need for a JInternalFrame to have a customized look. It should have a small button which toggles between minimize and maximize. So basically i want to modify the titlebar. Further during minimize, I don't want the Internal frame to become an Icon. Rather only the title bar should remain at the same place. Need some suggestions!!!
Hi! If u don't like the Metal L&F of the JInternalFrame, change it to some other L&F (like motif/windows). If u r still not satisfied, implement your own L&F. Reg. the behavior during minimize, i think we can't help it.
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...