3

Possible Duplicate:
In Scala, how can I subclass a Java class with multiple constructors?

Hello all clever people

I'm currently having a little problem where I need to invoke different super methods based on which constructor I invoke. In short it is something like this:

class HelpfulJList(model: ListModel) extends JList(model) with MouseListener {

    def this() = { //Call super wihtout arguments -> JList()}
}

How can this problem be solved? Thanks in advance. Regards Stefan.

Community
  • 1
  • 1
Stefan
  • 725
  • 2
  • 9
  • 16

1 Answers1

6

Similar / related question: In Scala, how can I subclass a Java class with multiple constructors?

Community
  • 1
  • 1
Randall Schulz
  • 26,420
  • 4
  • 61
  • 81