Extension for Scala Swing