package jp.ymir.taskReporter import java.io._ import javax.swing._ import jp.ymir.taskReporter._ 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 { UIManager.setLookAndFeel(Preferences.lookAndFeel()) 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)))) } } }