How to embed a (working) Button in a Swing Table in Scala?
I'm trying to use Scala/Swing to create a Table, one of whose columns is populated by Button s. My starting point is the SCells spreadsheet example from Odersky et al's book , and in particular the use of rendererComponent to control the Component appearing in each cell. Unfortunately, while this creates a button successfully, the button is not clickable. Here's a reasonably minimal and self-contained example: import swing._ import swing.event._ class TableButtons extends ScrollPane { viewportView = new Table(2,2) { rowHeight = 25 override def rendererComponent(isSelected: Boolean, hasFocus: