I want to use the setComponentPopupMenu(). But Scala.Swing.Component doesn't seem to have all the JComponent methods although javax.swing.JComponent is referenced in the documentation. So I'm a bit confused.
The ScalaSwing api is rather incomplete, but it gives you access to the underlying swing object, with peer
. So you can do
yourScalaSwingComponent.peer.setComponentPopupMenu(...)
You're back in java (swing) land then.
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