diff -r bd197b8eda21 -r c1568a2416a8 jdk/src/java.desktop/share/classes/java/awt/Checkbox.java --- a/jdk/src/java.desktop/share/classes/java/awt/Checkbox.java Fri Apr 17 16:57:30 2015 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Checkbox.java Fri Apr 17 17:01:24 2015 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2014, 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 @@ -239,13 +239,12 @@ * Creates the peer of the Checkbox. The peer allows you to change the * look of the Checkbox without changing its functionality. * - * @see java.awt.Toolkit#createCheckbox(java.awt.Checkbox) * @see java.awt.Component#getToolkit() */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) - peer = getToolkit().createCheckbox(this); + peer = getComponentFactory().createCheckbox(this); super.addNotify(); } }