import java.awt.event.ComponentEvent
import java.io._
import javax.swing.JOptionPane
+import javax.swing.JSplitPane
import javax.swing.KeyStroke
import javax.swing.event.MenuListener
import javax.swing.event.MenuEvent
val miSave = new MenuItem(new Action("Save") {
accelerator = Some(KeyStroke.getKeyStroke("control S"));
- def apply { save }
+ def apply = save
})
contents += miSave
contents += new MenuItem(new Action("Quit") {
accelerator = Some(KeyStroke.getKeyStroke("control Q"))
- def apply { closeOperation }
+ def apply = closeOperation
})
peer.addMenuListener(new MenuListener {
}
}
+ contents = new SplitPane {
+ peer.setOrientation(JSplitPane.HORIZONTAL_SPLIT)
+ resizeWeight = 0.3
+
+ leftComponent = new BorderPanel {
+ val title = new Label("Report date") {
+ horizontalAlignment = Alignment.Leading
+ }
+ layout(title) = BorderPanel.Position.North
+
+ val scroll = new ScrollPane {
+ horizontalScrollBarPolicy = ScrollPane.BarPolicy.Never
+ verticalScrollBarPolicy = ScrollPane.BarPolicy.Always
+ contents = new ListView[String] {
+ // FIXME
+ // listData =
+ }
+ }
+ layout(scroll) = BorderPanel.Position.Center
+ }
+ }
+
visible = true
}