From 2ddec2e2b2f1773079a8c1c54cfee3be3e6d111d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Mar 2016 07:34:13 +0000 Subject: [PATCH] Fix Filter panel size issues --- source/net/filebot/ui/analyze/AnalyzePanel.java | 6 +++--- source/net/filebot/ui/analyze/SplitTool.java | 2 +- source/net/filebot/util/FileUtilities.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/net/filebot/ui/analyze/AnalyzePanel.java b/source/net/filebot/ui/analyze/AnalyzePanel.java index fb723c98..06f73b40 100644 --- a/source/net/filebot/ui/analyze/AnalyzePanel.java +++ b/source/net/filebot/ui/analyze/AnalyzePanel.java @@ -11,9 +11,9 @@ public class AnalyzePanel extends JComponent { private final JTabbedPane toolsPanel = new JTabbedPane(); public AnalyzePanel() { - setLayout(new MigLayout("insets dialog, gapx 50, fill")); - add(fileTreePanel, "grow, sizegroupx column"); - add(toolsPanel, "grow, sizegroupx column"); + setLayout(new MigLayout("insets dialog, gapx 50, fill, nogrid")); + add(fileTreePanel, "grow 1, w 300:pref:500"); + add(toolsPanel, "grow 2"); putClientProperty("transferablePolicy", fileTreePanel.getTransferablePolicy()); diff --git a/source/net/filebot/ui/analyze/SplitTool.java b/source/net/filebot/ui/analyze/SplitTool.java index 5d022978..e92d0551 100644 --- a/source/net/filebot/ui/analyze/SplitTool.java +++ b/source/net/filebot/ui/analyze/SplitTool.java @@ -44,7 +44,7 @@ class SplitTool extends Tool { add(new JLabel("Split every")); add(spinner, "wmax 80, gap top rel, gap bottom unrel"); - add(new JLabel("MB.")); + add(new JLabel("MB")); tree.setTransferHandler(new DefaultTransferHandler(null, new FileTreeExportHandler())); tree.setDragEnabled(true); diff --git a/source/net/filebot/util/FileUtilities.java b/source/net/filebot/util/FileUtilities.java index c08cb70c..eabc7ab5 100644 --- a/source/net/filebot/util/FileUtilities.java +++ b/source/net/filebot/util/FileUtilities.java @@ -678,7 +678,7 @@ public final class FileUtilities { else if (size >= KILO) return String.format("%,d KB", size / KILO); else - return String.format("%,d Byte", size); + return String.format("%,d bytes", size); } public static final FileFilter FOLDERS = new FileFilter() {