10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * Portions Copyright (c) 2012 IBM Corporation 26 */ 27 28 /* @test 29 * @bug 7089914 30 * @summary Focus on image icons are not visible in javaws cache with high contrast mode 31 * @author Sean Chou 32 */ 33 34 import javax.swing.*; 35 import java.lang.reflect.Field; 36 37 public class bug7089914 { 38 39 public static void main(String[] args) throws Exception { 40 try { 41 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); 42 } catch (Exception e) { 43 System.out.println("Not WindowsLookAndFeel, test skipped"); 44 45 return; 46 } 47 48 SwingUtilities.invokeAndWait(new Runnable() { 49 @Override | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * Portions Copyright (c) 2012 IBM Corporation 26 */ 27 28 /* @test 29 * @bug 7089914 30 * @requires (os.family == "windows") 31 * @modules java.desktop/com.sun.java.swing.plaf.windows 32 * @summary Focus on image icons are not visible in javaws cache with high contrast mode 33 * @author Sean Chou 34 */ 35 36 import javax.swing.*; 37 import java.lang.reflect.Field; 38 39 public class bug7089914 { 40 41 public static void main(String[] args) throws Exception { 42 try { 43 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); 44 } catch (Exception e) { 45 System.out.println("Not WindowsLookAndFeel, test skipped"); 46 47 return; 48 } 49 50 SwingUtilities.invokeAndWait(new Runnable() { 51 @Override |