diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-20 20:00:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-20 20:00:46 +0000 |
commit | 7a339e84c2a3ad6ef4519cc2c9bda4b24d5ac999 (patch) | |
tree | b1817a9b09ba64c34a8da830de24577708fc847b | |
parent | 71e84137b68fc0cb0f9a616633bb39ef7c388fa4 (diff) | |
download | scala-7a339e84c2a3ad6ef4519cc2c9bda4b24d5ac999.tar.gz scala-7a339e84c2a3ad6ef4519cc2c9bda4b24d5ac999.tar.bz2 scala-7a339e84c2a3ad6ef4519cc2c9bda4b24d5ac999.zip |
Band-aid for #3081, issue should receive more c...
Band-aid for #3081, issue should receive more comprehensive treatment.
Review by imaier.
-rw-r--r-- | src/swing/scala/swing/RootPanel.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swing/scala/swing/RootPanel.scala b/src/swing/scala/swing/RootPanel.scala index 583e6a10a9..1c06559d05 100644 --- a/src/swing/scala/swing/RootPanel.scala +++ b/src/swing/scala/swing/RootPanel.scala @@ -24,7 +24,7 @@ trait RootPanel extends Container { */ def contents: Seq[Component] = { Swing.toOption[Any](peer.getContentPane.getComponent(0)).map { c => - UIElement.cachedWrapper(c.asInstanceOf[javax.swing.JComponent]) + UIElement.cachedWrapper[Component](c.asInstanceOf[javax.swing.JComponent]) }.toList } def contents_=(c: Component) { |