< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java

Print this page

        

*** 1469,1486 **** private void updateFrameGeometry(SynthContext context) { this.context = context; JComponent comp = context.getComponent(); JComponent titlePane = findChild(comp, "InternalFrame.northPane"); ! JInternalFrame jif; ! if (comp instanceof JButton) { ! JComponent bTitlePane = (JComponent)comp.getParent(); ! Container titlePaneParent = bTitlePane.getParent(); ! jif = findInternalFrame(titlePaneParent); ! } else { ! jif = findInternalFrame(comp); ! } if (jif == null) { return; } if (frame_style_set == null) { --- 1469,1479 ---- private void updateFrameGeometry(SynthContext context) { this.context = context; JComponent comp = context.getComponent(); JComponent titlePane = findChild(comp, "InternalFrame.northPane"); ! JInternalFrame jif = findInternalFrame(comp); if (jif == null) { return; } if (frame_style_set == null) {
< prev index next >