218 |
&& gc.getDevice().getType() != GraphicsDevice.TYPE_RASTER_SCREEN) |
&& gc.getDevice().getType() != GraphicsDevice.TYPE_RASTER_SCREEN) |
219 |
throw new IllegalArgumentException ("gc must be from a screen device"); |
throw new IllegalArgumentException ("gc must be from a screen device"); |
220 |
|
|
221 |
// FIXME: until we implement this, it just causes AWT to crash. |
if (gc == null) |
222 |
// if (gc == null) |
graphicsConfiguration = GraphicsEnvironment.getLocalGraphicsEnvironment() |
223 |
// graphicsConfiguration = GraphicsEnvironment.getLocalGraphicsEnvironment() |
.getDefaultScreenDevice() |
224 |
// .getDefaultScreenDevice() |
.getDefaultConfiguration(); |
225 |
// .getDefaultConfiguration(); |
else |
|
// else |
|
226 |
graphicsConfiguration = gc; |
graphicsConfiguration = gc; |
227 |
} |
} |
228 |
|
|