From: PHO Date: Fri, 3 Oct 2014 15:06:41 +0000 (+0900) Subject: wip X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=520a3f6ce5c36e933bfe6dd3977fa157aa506d05;p=task-reporter.git wip --- diff --git a/src/main/scala/jp/ymir/taskReporter/ui/MainFrame.scala b/src/main/scala/jp/ymir/taskReporter/ui/MainFrame.scala index 4e7edbf..957afae 100644 --- a/src/main/scala/jp/ymir/taskReporter/ui/MainFrame.scala +++ b/src/main/scala/jp/ymir/taskReporter/ui/MainFrame.scala @@ -17,10 +17,8 @@ import scala.swing.event._ class MainFrame(reportFile: Option[File]) extends Frame { private var reportSet = new ReportSet(reportFile) - title = "Task Reporter " + Main.getVersion - - size = Preferences.mainFrameSize() - centerOnScreen + title = "Task Reporter " + Main.getVersion + preferredSize = Preferences.mainFrameSize() peer.addComponentListener(new ComponentAdapter() { override def componentResized(e: ComponentEvent) { @@ -101,6 +99,7 @@ class MainFrame(reportFile: Option[File]) extends Frame { } } + centerOnScreen visible = true override def closeOperation {