diff options
author | Juuso Mikkonen <juuso.mikkonen@aalto.fi> | 2015-10-26 22:33:53 +0200 |
---|---|---|
committer | Juuso Mikkonen <juuso.mikkonen@aalto.fi> | 2015-10-26 22:33:53 +0200 |
commit | 69efce9e8340216164b8aeae3af72994fae64582 (patch) | |
tree | e884b0572fc6c7cdd3e68ab24ac53448e03b8274 /scala.html.markdown | |
parent | 44ca091c73afe13ec8760021cfed1d77afc5e4a5 (diff) |
[scala/eng] Added Java import to misc
Diffstat (limited to 'scala.html.markdown')
-rw-r--r-- | scala.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 192e03d7..166285f2 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -606,6 +606,9 @@ import scala.collection.immutable.{List => ImmutableList} // Import all classes, except some. The following excludes Map and Set: import scala.collection.immutable.{Map => _, Set => _, _} +// Java classes can also be imported. Scala syntax can be used +import java.swing.{JFrame, JWindow} + // Your programs entry point is defined in an scala file using an object, with a // single method, main: object Application { |