summaryrefslogtreecommitdiff
path: root/java/awt/Choice.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/awt/Choice.java')
-rw-r--r--java/awt/Choice.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/awt/Choice.java b/java/awt/Choice.java
index e3178943a..a190739e8 100644
--- a/java/awt/Choice.java
+++ b/java/awt/Choice.java
@@ -22,6 +22,7 @@
package java.awt;
import java.awt.peer.ChoicePeer;
+import java.awt.peer.ComponentPeer;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.io.Serializable;
@@ -315,7 +316,7 @@ public void
addNotify()
{
if (getPeer() == null)
- setPeer(getToolkit().createChoice(this));
+ setPeer((ComponentPeer)getToolkit().createChoice(this));
}
/*************************************************************************/