Skip to content

Commit

Permalink
ref - insignificant changes in FilePreview
Browse files Browse the repository at this point in the history
  • Loading branch information
innokenty committed Mar 31, 2014
1 parent ffae543 commit c3c86d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/example/preview/FilePreview.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.preview;

import com.example.Icon;
import com.example.components.LoadingLabel;
import com.example.filelist.FileListEntry;
import com.example.utils.CloseAction;
Expand All @@ -13,6 +14,7 @@
import static java.awt.event.KeyEvent.VK_W;
import static javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW;
import static javax.swing.KeyStroke.getKeyStroke;
import static javax.swing.SwingConstants.CENTER;

/**
* @author innokenty
Expand All @@ -23,7 +25,6 @@ public abstract class FilePreview<T> extends JDialog {

private final FileListEntry file;


public FilePreview(final FileListEntry file) {
this.file = file;

Expand Down Expand Up @@ -74,7 +75,7 @@ protected final void loading(boolean loading) {

private void error(Exception e) {
e.printStackTrace();
add(new JLabel(e.getMessage(), com.example.Icon.OOPS.build(), SwingConstants.CENTER));
add(new JLabel(e.getMessage(), Icon.OOPS.build(), CENTER));
}

protected abstract T load(FileListEntry file) throws Exception;
Expand Down

0 comments on commit c3c86d3

Please sign in to comment.