ignoring exception is loaded plugin ordering not possible

This commit is contained in:
fros4943 2007-01-16 12:59:09 +00:00
parent f5dc079895
commit c3e2c7e270
1 changed files with 10 additions and 6 deletions

View File

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: GUI.java,v 1.17 2007/01/16 10:33:25 fros4943 Exp $
* $Id: GUI.java,v 1.18 2007/01/16 12:59:09 fros4943 Exp $
*/
package se.sics.cooja;
@ -2523,12 +2523,16 @@ public class GUI {
}
// For all started visplugins, check if they have a zorder property
for (JInternalFrame plugin : getDesktopPane().getAllFrames()) {
if (plugin.getClientProperty("zorder") != null) {
getDesktopPane().setComponentZOrder(plugin,
((Integer) plugin.getClientProperty("zorder")).intValue());
plugin.putClientProperty("zorder", null);
try {
for (JInternalFrame plugin : getDesktopPane().getAllFrames()) {
if (plugin.getClientProperty("zorder") != null) {
getDesktopPane().setComponentZOrder(plugin,
((Integer) plugin.getClientProperty("zorder")).intValue());
plugin.putClientProperty("zorder", null);
}
}
} catch (Exception e) {
// Ignore errors
}
return true;