Skip to content

Dialog.showMessage should recognize Component message #111

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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