set Contents Modified
Specifies that contents of this root pane have been modified and not saved. The close button of the title pane of the matching frame / dialog will be animated (in case that the frame / dialog have decorated title pane). In case the root pane belongs to a JInternalFrame and that frame is iconified (to a JInternalFrame.JDesktopIcon), the close button of the its desktop icon is animated as well.
The animation cycles between red, orange and yellow color schemes. The animation will be visible only when the mouse hovers over the close button of the matching container (frame, dialog, internal frame, desktop icon). The tooltip of the close button is changed as well to reflect that the container contents are marked as modified.
See also
Parameters
If true, the close button of the title pane of the matching frame / dialog will be animated.