100 |
{ |
{ |
101 |
if (frame.isClosable()) |
if (frame.isClosable()) |
102 |
{ |
{ |
103 |
try |
try |
104 |
{ |
{ |
105 |
frame.setClosed(true); |
frame.setClosed(true); |
106 |
} |
} |
107 |
catch (PropertyVetoException pve) |
catch (PropertyVetoException pve) |
108 |
{ |
{ |
109 |
} |
// We do nothing if the attempt has been vetoed. |
110 |
|
} |
111 |
} |
} |
112 |
} |
} |
113 |
} |
} |
139 |
{ |
{ |
140 |
if (frame.isIconifiable() && ! frame.isIcon()) |
if (frame.isIconifiable() && ! frame.isIcon()) |
141 |
{ |
{ |
142 |
try |
try |
143 |
{ |
{ |
144 |
frame.setIcon(true); |
frame.setIcon(true); |
145 |
} |
} |
146 |
catch (PropertyVetoException pve) |
catch (PropertyVetoException pve) |
147 |
{ |
{ |
148 |
} |
// We do nothing if the attempt has been vetoed. |
149 |
|
} |
150 |
} |
} |
151 |
} |
} |
152 |
} |
} |
177 |
{ |
{ |
178 |
try |
try |
179 |
{ |
{ |
180 |
if (frame.isMaximizable() && ! frame.isMaximum()) |
if (frame.isMaximizable() && ! frame.isMaximum()) |
181 |
frame.setMaximum(true); |
frame.setMaximum(true); |
182 |
else if (frame.isMaximum()) |
else if (frame.isMaximum()) |
183 |
frame.setMaximum(false); |
frame.setMaximum(false); |
184 |
} |
} |
185 |
catch (PropertyVetoException pve) |
catch (PropertyVetoException pve) |
186 |
{ |
{ |
187 |
|
// We do nothing if the attempt has been vetoed. |
188 |
} |
} |
189 |
} |
} |
190 |
} |
} |
243 |
{ |
{ |
244 |
if (frame.isMaximum()) |
if (frame.isMaximum()) |
245 |
{ |
{ |
246 |
try |
try |
247 |
{ |
{ |
248 |
frame.setMaximum(false); |
frame.setMaximum(false); |
249 |
} |
} |
250 |
catch (PropertyVetoException pve) |
catch (PropertyVetoException pve) |
251 |
{ |
{ |
252 |
} |
// We do nothing if the attempt has been vetoed. |
253 |
|
} |
254 |
} |
} |
255 |
} |
} |
256 |
} |
} |
485 |
*/ |
*/ |
486 |
public void removeLayoutComponent(Component c) |
public void removeLayoutComponent(Component c) |
487 |
{ |
{ |
488 |
|
// Nothing to do here. |
489 |
} |
} |
490 |
} |
} |
491 |
|
|