How can you set a new frame icon on Scala’s scala.swing.Frame
class? What are the intentions behind Frame.iconImage: Image
and Frame.iconify()
? I can’t figure out, what they’re doing.
Here’s my last attempt
import scala.swing.Frame
class MyFrame extends Frame {
iconImage = toolkit.getImage("src/main/resources/icon.png")
visible = true
}
I also tried several other methods, but nothing worked.