1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 14:55:09 -05:00

Fix Filter panel size issues

This commit is contained in:
Reinhard Pointner 2016-03-14 07:34:13 +00:00
parent 1878d3b060
commit 2ddec2e2b2
3 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,9 @@ public class AnalyzePanel extends JComponent {
private final JTabbedPane toolsPanel = new JTabbedPane(); private final JTabbedPane toolsPanel = new JTabbedPane();
public AnalyzePanel() { public AnalyzePanel() {
setLayout(new MigLayout("insets dialog, gapx 50, fill")); setLayout(new MigLayout("insets dialog, gapx 50, fill, nogrid"));
add(fileTreePanel, "grow, sizegroupx column"); add(fileTreePanel, "grow 1, w 300:pref:500");
add(toolsPanel, "grow, sizegroupx column"); add(toolsPanel, "grow 2");
putClientProperty("transferablePolicy", fileTreePanel.getTransferablePolicy()); putClientProperty("transferablePolicy", fileTreePanel.getTransferablePolicy());

View File

@ -44,7 +44,7 @@ class SplitTool extends Tool<TreeModel> {
add(new JLabel("Split every")); add(new JLabel("Split every"));
add(spinner, "wmax 80, gap top rel, gap bottom unrel"); 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.setTransferHandler(new DefaultTransferHandler(null, new FileTreeExportHandler()));
tree.setDragEnabled(true); tree.setDragEnabled(true);

View File

@ -678,7 +678,7 @@ public final class FileUtilities {
else if (size >= KILO) else if (size >= KILO)
return String.format("%,d KB", size / KILO); return String.format("%,d KB", size / KILO);
else else
return String.format("%,d Byte", size); return String.format("%,d bytes", size);
} }
public static final FileFilter FOLDERS = new FileFilter() { public static final FileFilter FOLDERS = new FileFilter() {