Hi, I want to be able to do graphics with Scala programming language. Need to be able to do animations and attractive user interface, where to start?
Remember that scala can use java classes? :) I would start by learning the Swing framework, which is a Java framework containing everything you need to get you started building GUIs. For animations, have a look at javax.swing.Timer
, which fires events on the event dispatch thread (the thread on which all Swing GUIs must run on - Swing is not thread safe).
Scala provides helper classes simplifying the building of swing applications in the package scala.swing
, its API found at scala swing API 2.7.5
Java also provides an experimental framework to simplify Swing development, the appframework.
Hope this helps :)
-- Flaviu Cipcigan
As Flaviu said, anything that's available in Java is also available in Scala for creating nice GUIs.
If you want to learn how to write really nice and sexy GUIs with Swing, I recommend the book Filthy Rich Clients by Chet Haase and Romain Guy.