package jp.ymir.taskReporter import java.io._ import javax.swing._ import jp.ymir.taskReporter.ui._ object Main { def getVersion : String = { // FIXME: Read it from the MANIFEST.MF return "0.0.1" } def main(args: Array[String]) { try { // FIXME: Provide a way to configure this. UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel") JFrame.setDefaultLookAndFeelDecorated(true) JDialog.setDefaultLookAndFeelDecorated(true) } catch { case e: Exception => e.printStackTrace } args.length match { case 0 => new MainFrame(None) case 1 => new MainFrame(Some(new File(args(0)))) } } }