equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
383 return null; |
383 return null; |
384 } |
384 } |
385 |
385 |
386 // java.awt.Toolkit#getNativeContainer() is not available |
386 // java.awt.Toolkit#getNativeContainer() is not available |
387 // from this package |
387 // from this package |
|
388 @SuppressWarnings("deprecation") |
388 private LWComponentPeer<?, ?> getNearestNativePeer(Component comp) { |
389 private LWComponentPeer<?, ?> getNearestNativePeer(Component comp) { |
389 if (comp==null) |
390 if (comp==null) |
390 return null; |
391 return null; |
391 |
392 |
392 ComponentPeer peer = comp.getPeer(); |
393 ComponentPeer peer = comp.getPeer(); |