summaryrefslogtreecommitdiffhomepage
path: root/scala.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2016-01-06 14:56:09 -0700
committerGeoff Liu <cangming.liu@gmail.com>2016-01-06 14:56:09 -0700
commit88eec09b88355123e9e9d2348c2c65a2e9b38d72 (patch)
tree943f4c652456e4b008ba5b30d72282ab859d239c /scala.html.markdown
parent1d65107a8fd74e67b2b9fe7e2e503a04d0db4df0 (diff)
parent69efce9e8340216164b8aeae3af72994fae64582 (diff)
Merge pull request #1802 from juusaw/patch-3
[scala/eng] Added Java import to misc
Diffstat (limited to 'scala.html.markdown')
-rw-r--r--scala.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index a82983a5..c2aa942c 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -621,6 +621,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 {