--- old/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java 2014-12-09 10:06:45.445094655 -0800 +++ new/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java 2014-12-09 10:06:45.289094648 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2014, 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 @@ -31,6 +31,7 @@ public class ColorEditor extends Panel implements PropertyEditor { private static final long serialVersionUID = 1781257185164716054L; + @SuppressWarnings("deprecation") public ColorEditor() { setLayout(null); @@ -69,10 +70,12 @@ changeColor(c); } + @SuppressWarnings("deprecation") public Dimension preferredSize() { return new Dimension(ourWidth, 40); } + @SuppressWarnings("deprecation") public boolean keyUp(Event e, int key) { if (e.target == text) { try { @@ -107,6 +110,7 @@ } + @SuppressWarnings("deprecation") public boolean action(Event e, Object arg) { if (e.target == choser) { changeColor(colors[choser.getSelectedIndex()]);