Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala, animations and graphical user interface

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?


1 Answers

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 :)

like image 129
Flaviu Cipcigan Avatar answered Feb 28 '26 16:02

Flaviu Cipcigan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!