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();
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());

View File

@ -44,7 +44,7 @@ class SplitTool extends Tool<TreeModel> {
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);

View File

@ -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() {