From fe747593902a8a58a64716b46fbcb703925331dc Mon Sep 17 00:00:00 2001 From: lodici Date: Sun, 26 Feb 2017 15:17:28 +0000 Subject: [PATCH] add H2 database MFileLink to devMode stats screen. --- src/magic/ui/screen/stats/StatsContentPanel.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/magic/ui/screen/stats/StatsContentPanel.java b/src/magic/ui/screen/stats/StatsContentPanel.java index e49b0554ed..76c3506f2d 100644 --- a/src/magic/ui/screen/stats/StatsContentPanel.java +++ b/src/magic/ui/screen/stats/StatsContentPanel.java @@ -2,13 +2,16 @@ package magic.ui.screen.stats; import java.awt.Color; import java.awt.event.ActionEvent; +import java.io.File; import java.sql.SQLException; import javax.swing.AbstractAction; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JSpinner; +import magic.data.stats.h2.H2Database; import magic.ui.FontsAndBorders; +import magic.ui.widget.M.MFileLink; import magic.ui.widget.M.MScrollPane; import magic.ui.widget.TexturedPanel; import net.miginfocom.swing.MigLayout; @@ -128,8 +131,12 @@ class StatsContentPanel extends TexturedPanel implements IPagination { gamesSpinner.setValue(10); + MFileLink dbLink = new MFileLink(); + dbLink.setFile(new File(H2Database.getDatabaseFile() + ".mv.db")); + add(runButton, "w 200!"); add(gamesSpinner, "w 60!"); + add(dbLink.component(), "w 100%"); } private void setRunButtonEnabled(boolean b) {