X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FFileManager.java;h=c961280fe286becd343f914fdb9453647ad2867f;hb=082365513bbf73d143f2b796d8c23cf5ff4446dc;hp=cb33c11bb117cd81118c7fc207b7a4f73fb6e55c;hpb=20ba46930e708b0c3f3c529cd5331a8362cea81a;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index cb33c11..c961280 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -119,6 +119,12 @@ public class FileManager extends JDialog implements I18nable, ActionListener, Tr /** The “file name” textfield. */ private JTextField fileNameTextField; + /** The “file size” label. */ + private I18nLabel fileSizeLabel; + + /** The “file size” text field. */ + private JTextField fileSizeTextField; + /** * Creates a new file manager. * @@ -247,6 +253,12 @@ public class FileManager extends JDialog implements I18nable, ActionListener, Tr propertiesPanel.add(fileNameLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(12, 24, 0, 0), 0, 0)); propertiesPanel.add(fileNameTextField, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(12, 12, 0, 0), 0, 0)); + fileSizeLabel = new I18nLabel("fileManager.label.fileSize"); + fileSizeTextField = new JTextField(); + fileSizeTextField.setEditable(false); + propertiesPanel.add(fileSizeLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(12, 24, 0, 0), 0, 0)); + propertiesPanel.add(fileSizeTextField, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(12, 12, 0, 0), 0, 0)); + /* glue panel. */ propertiesPanel.add(new JPanel(), new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));