The Artima Developer Community


Errata for Programming in Scala, 2nd Edition
Chapter 34: GUI Programming
Return to errata index.

Page 757 (PDF page 788):
Not really a bug/error but a feature request...

The chapter starts with the following code:

import scala.swing._

which indicates that swing is part of the standard Scala installation. 
Even thought it's part of the core api, I had to hunt down the
dependencies in order to be able to import the library.  The following
line needed to be added to my build.sbt file:

libraryDependencies += "org.scala-lang" % "scala-swing" % "2.11.0-M7"

It would be helpful to give an indication in the book that the user is
responsible for tracking down this dependency.
Page 758 (PDF page 789):
'SimpleGuiApplication' is deprecated.
For a book with the newest changes, this example should better use
'SimpleSwingApplication'.

Page number: Book type: Paperback book PDF eBook
Book version: (Or build date. Found on back of title page.)
Your feedback:
Your name: (optional)
Your email address: (optional) (will not be published)

Copyright © 2024 Artima, Inc. All rights reserved.