scala-swing
scala-swing copied to clipboard
Scala wrappers for Java's Swing API for desktop GUIs
Swing auto-detects `JComponent`as 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...
These should be shortcuts to `layoutManager.setHgap`, `getHgap` etc.
I'm not quite sure whether this is a bug or intended behavior: A Publisher automatically listens to itself, "for convenience". For a Component, this call to listenTo() calls Publisher's subscribe,...
Should a `CONTRIBUTING.md` guide be added? What is the policy now that the project is "community maintained". Is there still a CLA that needs to be signed, etc.? And what...
@Sciss writes at https://github.com/scala/scala-swing/issues/76#issuecomment-385634543 : > Regarding the book examples, the best would probably be to simply drop them into test sources, so we would automatically detect if there is...
I miss the GroupPanel (Scala 2.8 RC1). So I have implemented a first simple version. It does not yet offer all features of GroupPanel, but you can write some gui...
Suggested changes: * `Constraints` should be a member of the companion object rather than the class, as there's no reason to tie constraint construction to a particular panel instance. *...
Here is a simple implementation: ```scala import swing.{Component, LayoutContainer, Panel} import java.awt.CardLayout class CardPanel extends Panel with LayoutContainer { type Constraints = String def layoutManager = peer.getLayout.asInstanceOf[CardLayout] override lazy val...
There is a swing.Action with peer javax.swing.Action, but there is no TextAction with peer javax.swing.text.TextAction. From the API of javax.swing.text.TextAction ```scala * An Action implementation useful for key bindings that...
Frequently, the items in the combobox are dynamic and not known at the time of the ComboBox's instantiation.