JComponent () { JLabel label = new JLabel(IdeBundle.message("binary.file.too.large", myFile.getPath(), StringUtil.formatFileSize(myFile.getLength()))); label.setHorizontalAlignment(SwingConstants.CENTER); return label; }