Search in sources :

Example 1 with FileLabel

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);
}
Also used : FileLabel(com.mucommander.ui.text.FileLabel) AbstractFile(com.mucommander.commons.file.AbstractFile) JLabel(javax.swing.JLabel) Date(java.util.Date)

Aggregations

AbstractFile (com.mucommander.commons.file.AbstractFile)1 FileLabel (com.mucommander.ui.text.FileLabel)1 Date (java.util.Date)1 JLabel (javax.swing.JLabel)1