From ecdb5d290e51e26acd3b3da0867e53a836c4fff1 Mon Sep 17 00:00:00 2001 From: Hanns Holger Rutz Date: Wed, 10 Apr 2019 20:08:59 +0200 Subject: [PATCH] fixes #99 - FileChooser extends Component now --- src/main/scala/scala/swing/FileChooser.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/scala/swing/FileChooser.scala b/src/main/scala/scala/swing/FileChooser.scala index bb255b0d..d696f443 100644 --- a/src/main/scala/scala/swing/FileChooser.scala +++ b/src/main/scala/scala/swing/FileChooser.scala @@ -46,9 +46,9 @@ object FileChooser { * * @see [[http://docs.oracle.com/javase/7/docs/api/javax/swing/JFileChooser.html javax.swing.JFileChooser]] */ -class FileChooser(dir: File) { +class FileChooser(dir: File) extends Component { import scala.swing.FileChooser._ - lazy val peer: JFileChooser = new JFileChooser(dir) + override lazy val peer: JFileChooser = new JFileChooser(dir) def this() = this(null)