jdk/src/macosx/classes/sun/awt/CGraphicsEnvironment.java

Print this page

        

*** 165,174 **** --- 165,177 ---- for (final int id : getDisplayIDs()) { devices.put(id, old.containsKey(id) ? old.get(id) : new CGraphicsDevice(id)); } + if (devices.isEmpty()) { + throw new AWTError("no screen devices"); + } } displayChanged(); } @Override