equal
deleted
inserted
replaced
127 // That method will handle the maximization of the frame. |
127 // That method will handle the maximization of the frame. |
128 f.setIcon(false); |
128 f.setIcon(false); |
129 } catch (PropertyVetoException e2) { |
129 } catch (PropertyVetoException e2) { |
130 } |
130 } |
131 } else { |
131 } else { |
|
132 Container c = f.getParent(); |
|
133 if (c == null) { |
|
134 return; |
|
135 } |
132 f.setNormalBounds(f.getBounds()); |
136 f.setNormalBounds(f.getBounds()); |
133 Rectangle desktopBounds = f.getParent().getBounds(); |
137 Rectangle desktopBounds = c.getBounds(); |
134 setBoundsForFrame(f, 0, 0, |
138 setBoundsForFrame(f, 0, 0, |
135 desktopBounds.width, desktopBounds.height); |
139 desktopBounds.width, desktopBounds.height); |
136 } |
140 } |
137 |
141 |
138 // Set the maximized frame as selected. |
142 // Set the maximized frame as selected. |