[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui GUI.java, 1.74, 1.75
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-10-11 10:23:30
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30186/src/net/sourceforge/bprocessor/gui Modified Files: GUI.java Log Message: getLocationOnScreen can throw a exception Index: GUI.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** GUI.java 22 Sep 2007 13:53:43 -0000 1.74 --- GUI.java 11 Oct 2007 10:23:33 -0000 1.75 *************** *** 602,606 **** alertWindow.pack(); ! java.awt.Point where = getFocusOwner().getLocationOnScreen(); if (where == null) { where = getMousePosition(); --- 602,611 ---- alertWindow.pack(); ! java.awt.Point where = null; ! try { ! where = getFocusOwner().getLocationOnScreen(); ! } catch (Exception e) { ! log.warn(e.getMessage()); ! } if (where == null) { where = getMousePosition(); |