Skip to content

Dialog.showMessage should recognize Component message #111

Open
@Sciss

Description

@Sciss

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions