|
Scala example source code file (LabelTest.scala)
The Scala LabelTest.scala source codepackage scala.swing package test import scala.swing._ import scala.swing.event._ object LabelTest extends SimpleSwingApplication { def top = new MainFrame{ contents = new Label { text = "Hello" import java.awt.event._ listenTo(mouse.clicks) reactions += { case MousePressed(_,_,_,_,_) => println("Mouse pressed2") } } } } Other Scala examples (source code examples)Here is a short list of links related to this Scala LabelTest.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.