--- old/src/java.desktop/share/classes/java/awt/Choice.java 2015-04-02 18:02:32.000000000 +0300
+++ new/src/java.desktop/share/classes/java/awt/Choice.java 2015-04-02 18:02:31.000000000 +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
@@ -143,13 +143,12 @@
* Creates the Choice
's peer. This peer allows us
* to change the look
* of the Choice
without changing its functionality.
- * @see java.awt.Toolkit#createChoice(java.awt.Choice)
* @see java.awt.Component#getToolkit()
*/
public void addNotify() {
synchronized (getTreeLock()) {
if (peer == null)
- peer = getToolkit().createChoice(this);
+ peer = getComponentFactory().createChoice(this);
super.addNotify();
}
}