use of com.mucommander.ui.text.FileLabel in project mucommander by mucommander.
the class FileCollisionDialog method addFileDetails.
private void addFileDetails(XAlignedComponentPanel panel, AbstractFile file, String nameLabel) {
addFileDetailsRow(panel, nameLabel + ":", new FileLabel(file, false), 0);
AbstractFile parent = file.getParent();
addFileDetailsRow(panel, Translator.get("location") + ":", new FileLabel(parent == null ? file : parent, true), 0);
addFileDetailsRow(panel, Translator.get("size") + ":", new JLabel(SizeFormat.format(file.getSize(), SizeFormat.DIGITS_FULL | SizeFormat.UNIT_LONG | SizeFormat.INCLUDE_SPACE)), 0);
addFileDetailsRow(panel, Translator.get("date") + ":", new JLabel(CustomDateFormat.format(new Date(file.getDate()))), 0);
addFileDetailsRow(panel, Translator.get("permissions") + ":", new JLabel(file.getPermissionsString()), 10);
}
Aggregations