From c3e2c7e27036124dd91186638513267982633901 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 16 Jan 2007 12:59:09 +0000 Subject: [PATCH] ignoring exception is loaded plugin ordering not possible --- tools/cooja/java/se/sics/cooja/GUI.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/GUI.java b/tools/cooja/java/se/sics/cooja/GUI.java index 34f54da8d..6e54880b8 100644 --- a/tools/cooja/java/se/sics/cooja/GUI.java +++ b/tools/cooja/java/se/sics/cooja/GUI.java @@ -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;