--- old/src/java.desktop/share/classes/java/awt/Panel.java 2015-04-02 18:02:41.000000000 +0300 +++ new/src/java.desktop/share/classes/java/awt/Panel.java 2015-04-02 18:02:41.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2015, 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 @@ -83,7 +83,7 @@ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) - peer = getToolkit().createPanel(this); + peer = getComponentFactory().createPanel(this); super.addNotify(); } }