Skip to content

Commit

Permalink
fixes #99
Browse files Browse the repository at this point in the history
- FileChooser extends Component now
  • Loading branch information
Sciss committed Apr 10, 2019
1 parent c1f96aa commit ecdb5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scala/swing/FileChooser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ecdb5d2

Please # to comment.