removed Java 1.6 added ModalityType
This commit is contained in:
parent
5fb8871fb6
commit
411ad59bda
|
@ -24,13 +24,12 @@
|
||||||
* (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.45 2007/05/11 10:55:07 fros4943 Exp $
|
* $Id: GUI.java,v 1.46 2007/05/14 12:13:08 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.Dialog.ModalityType;
|
|
||||||
import java.awt.event.*;
|
import java.awt.event.*;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
@ -3069,9 +3068,9 @@ public class GUI {
|
||||||
errorDialog = new JDialog((Dialog) parentComponent, title, true);
|
errorDialog = new JDialog((Dialog) parentComponent, title, true);
|
||||||
else if (parentComponent instanceof Frame)
|
else if (parentComponent instanceof Frame)
|
||||||
errorDialog = new JDialog((Frame) parentComponent, title, true);
|
errorDialog = new JDialog((Frame) parentComponent, title, true);
|
||||||
else if (parentComponent instanceof Window)
|
// else if (parentComponent instanceof Window)
|
||||||
errorDialog = new JDialog((Window) parentComponent, title,
|
// errorDialog = new JDialog((Window) parentComponent, title,
|
||||||
ModalityType.APPLICATION_MODAL);
|
// ModalityType.APPLICATION_MODAL);
|
||||||
else {
|
else {
|
||||||
logger.fatal("Bad parent for error dialog");
|
logger.fatal("Bad parent for error dialog");
|
||||||
errorDialog = new JDialog((Frame) null, title + " (Java stack trace)");
|
errorDialog = new JDialog((Frame) null, title + " (Java stack trace)");
|
||||||
|
|
Loading…
Reference in a new issue