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

View file

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 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; package se.sics.cooja;
@ -2523,12 +2523,16 @@ public class GUI {
} }
// For all started visplugins, check if they have a zorder property // For all started visplugins, check if they have a zorder property
for (JInternalFrame plugin : getDesktopPane().getAllFrames()) { try {
if (plugin.getClientProperty("zorder") != null) { for (JInternalFrame plugin : getDesktopPane().getAllFrames()) {
getDesktopPane().setComponentZOrder(plugin, if (plugin.getClientProperty("zorder") != null) {
((Integer) plugin.getClientProperty("zorder")).intValue()); getDesktopPane().setComponentZOrder(plugin,
plugin.putClientProperty("zorder", null); ((Integer) plugin.getClientProperty("zorder")).intValue());
plugin.putClientProperty("zorder", null);
}
} }
} catch (Exception e) {
// Ignore errors
} }
return true; return true;