How do I load and display an image in a Scala Swing component?
I usually use Label with ImageIcon for that ... like:
val label = new Label {
icon = new ImageIcon("path to the image file")
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With