01 2012 档案

Scala 练习:Timesheet
摘要:package sanguo.timesheetimport helpers._abstract class Project(val name: String, val rate: Int)case class BillableProject(override val name: String) extends Project(name, 1)case class SIPProject(override val name: String) extends Project(name, 0)case class Holiday() extends Project("休假", 0 阅读全文

posted @ 2012-01-29 15:56 nixil 阅读(301) 评论(0) 推荐(0)

Scala Swing 之使用 FileChooser
摘要:import scala.swing.Buttonimport scala.swing.FileChooserimport scala.swing.FlowPanelimport scala.swing.MainFrameimport scala.swing.SimpleGUIApplicationimport java.io.Fileimport scala.swing.event.ButtonClickedimport scala.swing.Labelobject SimpleGUI extends SimpleGUIApplication { val chooser = new Fi. 阅读全文

posted @ 2012-01-17 22:29 nixil 阅读(711) 评论(0) 推荐(1)