< prev index next >
src/java.desktop/windows/classes/sun/awt/Win32GraphicsEnvironment.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -139,12 +139,12 @@
* display settings are changed.
*/
@Override
public void displayChanged() {
// getNumScreens() will return the correct current number of screens
- GraphicsDevice newDevices[] = new GraphicsDevice[getNumScreens()];
- GraphicsDevice oldScreens[] = screens;
+ GraphicsDevice[] newDevices = new GraphicsDevice[getNumScreens()];
+ GraphicsDevice[] oldScreens = screens;
// go through the list of current devices and determine if they
// could be reused, or will have to be replaced
if (oldScreens != null) {
for (int i = 0; i < oldScreens.length; i++) {
if (!(screens[i] instanceof Win32GraphicsDevice)) {
< prev index next >