- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scala.swing.ComboBox bug
Sat, 2008-12-20, 12:56
class ComboBox[A](items: Seq[A]) extends Component with Publisher {
! object selection extends Publisher {
-----------------
...
+ }
peer.addActionListener(Swing.ActionListener { e =>
...
- }
That is, the peer.addActionListener should appear outside the body of the selection object (and in the body of the ComboBox class itself). Only then is the SelectionChanged event published (when you change the selection).
--
Rob, Lafros.com
! object selection extends Publisher {
-----------------
...
+ }
peer.addActionListener(Swing.ActionListener { e =>
...
- }
That is, the peer.addActionListener should appear outside the body of the selection object (and in the body of the ComboBox class itself). Only then is the SelectionChanged event published (when you change the selection).
--
Rob, Lafros.com