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();
|
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());
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue