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
* 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,6 +2523,7 @@ public class GUI {
}
// For all started visplugins, check if they have a zorder property
try {
for (JInternalFrame plugin : getDesktopPane().getAllFrames()) {
if (plugin.getClientProperty("zorder") != null) {
getDesktopPane().setComponentZOrder(plugin,
@ -2530,6 +2531,9 @@ public class GUI {
plugin.putClientProperty("zorder", null);
}
}
} catch (Exception e) {
// Ignore errors
}
return true;
}