< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2011, 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 --- 1,7 ---- /* ! * Copyright (c) 2002, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 74,83 **** --- 74,84 ---- SunGraphicsCallback.LIGHTWEIGHTS | SunGraphicsCallback.HEAVYWEIGHTS); } + @SuppressWarnings("deprecation") public void setBackground(Color c) { Component comp; int i; Container cont = (Container) target;
*** 99,108 **** --- 100,110 ---- public void setForeground(Color c) { setForegroundForHierarchy((Container) target, c); } + @SuppressWarnings("deprecation") private void setForegroundForHierarchy(Container cont, Color c) { synchronized(target.getTreeLock()) { int n = cont.getComponentCount(); for(int i=0; i < n; i++) { Component comp = cont.getComponent(i);
< prev index next >