Skip to content

Commit ecdb5d2

Browse files
committed
fixes #99
- FileChooser extends Component now
1 parent c1f96aa commit ecdb5d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scala/swing/FileChooser.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ object FileChooser {
4646
*
4747
* @see [[http://docs.oracle.com/javase/7/docs/api/javax/swing/JFileChooser.html javax.swing.JFileChooser]]
4848
*/
49-
class FileChooser(dir: File) {
49+
class FileChooser(dir: File) extends Component {
5050
import scala.swing.FileChooser._
51-
lazy val peer: JFileChooser = new JFileChooser(dir)
51+
override lazy val peer: JFileChooser = new JFileChooser(dir)
5252

5353
def this() = this(null)
5454

0 commit comments

Comments
 (0)