- 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 =
- }
+ border = BorderFactory.createEmptyBorder(5, 5, 5, 5)
+
+ val reportsScroll = new ScrollPane(
+ new Table() {
+ peer.setModel(reportSet)
+ if (rowCount > 0) {
+ selection.rows += rowCount - 1 // Select the last report
+ }
+ selection.reactions += {
+ case TableRowsSelected(_, _, false) =>
+ // FIXME
+ }
+ })
+ layout(reportsScroll) = BorderPanel.Position.Center
+
+ val buttons = new FlowPanel(FlowPanel.Alignment.Left)() {
+ contents += new Button(new Action("Add") {
+ def apply = {} // FIXME
+ })
+ contents += new Button(new Action("Delete...") {
+ def apply = {} // FIXME
+ })