Fix Filter panel size issues
This commit is contained in:
parent
1878d3b060
commit
2ddec2e2b2
|
@ -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());
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue