This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Date Picker?

1 reply
Charles F. Munat
Joined: 2008-12-29,
User offline. Last seen 42 years 45 weeks ago.

What is the best way to handle dates/times in a Scala Swing form? I'm
not seeing any sort of Date Picker class. Is it roll your own, or am I
missing something?

Also, are there any tutorials on creating GUI apps in Scala -- other
than the SCells app in the Programming in Scala book? If not, is Scala
Swing similar enough to Java Swing to use the Java tutorials?

Thanks!

Chas. Munat
Seattle

imaier
Joined: 2008-07-01,
User offline. Last seen 23 weeks 2 days ago.
Re: Date Picker?

We are only wrapping standard swing components, so you need to write or
wrap your own date widget. I believe swingx has a JXDatePicker or so,
don't they?

Scala swing tries to be as close to Java Swing as possible, except for
those cases, where we see better solutions in Scala. Therefore, it's
good to know Java Swing first. Although not a tutorial, the examples in
the scala.swing.test package should be pretty educational.

Ingo

Charles F. Munat wrote:
> What is the best way to handle dates/times in a Scala Swing form? I'm
> not seeing any sort of Date Picker class. Is it roll your own, or am I
> missing something?
>
> Also, are there any tutorials on creating GUI apps in Scala -- other
> than the SCells app in the Programming in Scala book? If not, is Scala
> Swing similar enough to Java Swing to use the Java tutorials?
>
> Thanks!
>
> Chas. Munat
> Seattle

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland