Added a menu bar to test overlapping widgets.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1297 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-04-27 02:34:29 +00:00
parent 3713cf1034
commit a2c59dd2a5
2 changed files with 23 additions and 2 deletions
@@ -1,5 +1,5 @@
//
// $Id: ViewerApp.java,v 1.30 2002/04/23 01:19:04 mdb Exp $
// $Id: ViewerApp.java,v 1.31 2002/04/27 02:34:28 mdb Exp $
package com.threerings.miso.viewer;
@@ -9,6 +9,8 @@ import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.io.IOException;
import javax.swing.JPopupMenu;
import com.samskivert.swing.util.SwingUtil;
import com.threerings.resource.ResourceManager;
@@ -45,6 +47,9 @@ public class ViewerApp
System.exit(-1);
}
Log.info("Turning off popups.");
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
// get the graphics environment
GraphicsEnvironment env =
GraphicsEnvironment.getLocalGraphicsEnvironment();