scala-swing icon indicating copy to clipboard operation
scala-swing copied to clipboard

Dialog.showMessage should recognize Component message

Open Sciss opened this issue 6 years ago • 0 comments

Swing auto-detects JComponentas the message parameter. For example

Dialog.showMessage(message = new javax.swing.JLabel("Hello"))

To use that feature, we currently have to say .peer

Dialog.showMessage(message = new Label("Hello").peer)

It would be good if scala-swing automatically detected a scala.swing.UIElement and unwrap it here.

Sciss avatar Jul 31 '19 09:07 Sciss