private void propagateModificationState() { JComponent titlePane = getTitlePane(); if (titlePane instanceof SubstanceTitlePane) { ((SubstanceTitlePane) titlePane) .getCloseButton() .putClientProperty( SubstanceLookAndFeel.WINDOW_MODIFIED, root .getClientProperty(SubstanceLookAndFeel.WINDOW_MODIFIED)); return; } JInternalFrame jif = (JInternalFrame) SwingUtilities .getAncestorOfClass(JInternalFrame.class, this.root); if (jif != null) { SubstanceInternalFrameUI internalFrameUI = (SubstanceInternalFrameUI) jif .getUI(); internalFrameUI.setWindowModified(Boolean.TRUE.equals(root .getClientProperty(SubstanceLookAndFeel.WINDOW_MODIFIED))); } }
private void propagateModificationState() { JComponent titlePane = getTitlePane(); if (titlePane instanceof SubstanceTitlePane) { ((SubstanceTitlePane) titlePane) .getCloseButton() .putClientProperty( SubstanceLookAndFeel.WINDOW_MODIFIED, root .getClientProperty(SubstanceLookAndFeel.WINDOW_MODIFIED)); return; } JInternalFrame jif = (JInternalFrame) SwingUtilities .getAncestorOfClass(JInternalFrame.class, this.root); if (jif != null) { SubstanceInternalFrameUI internalFrameUI = (SubstanceInternalFrameUI) jif .getUI(); internalFrameUI.setWindowModified(Boolean.TRUE.equals(root .getClientProperty(SubstanceLookAndFeel.WINDOW_MODIFIED))); } }