scala Slider throws casting exception

I create an Slider object:

    val slider = new Slider{
        min = 0
        max = 30
        labels = Map(0 -> new Label("Nula"),15-> new Label("Pul"),30-> new Label("Max"))
        paintLabels = true

when I run this, an exception is thrown: scala.swing.Label cannot be cast to java.awt.Component but why? When i browse the docs, the excpected type for labels is a Map[Int,Label].


It is a bug, which was corrected for Scala 2.8 about 8 months ago.

Need Your Help

how to automatically login to the website with http url?

jsp http

Is it possible to automatically login to the website with http url using jsp instead of entering username and password.

Persistent HTTP Connection with RestSharp

http rest http-headers keep-alive restsharp

I am using RestSharp to consume a REST web service and will be making a large volume of calls in a short time period.