import be.nikiroo.fanfix.Main;
import be.nikiroo.fanfix.bundles.UiConfig;
import be.nikiroo.fanfix.data.MetaData;
-import be.nikiroo.fanfix.reader.LocalReaderBook.BookActionListner;
+import be.nikiroo.fanfix.reader.LocalReaderBook.BookActionListener;
import be.nikiroo.utils.WrapLayout;
class LocalReaderFrame extends JFrame {
books.add(book);
final String luid = meta.getLuid();
- book.addActionListener(new BookActionListner() {
+ book.addActionListener(new BookActionListener() {
public void select(LocalReaderBook book) {
for (LocalReaderBook abook : books) {
abook.setSelected(abook == book);
public void action(LocalReaderBook book) {
try {
- File target = LocalReaderFrame.this.reader
- .getTarget(luid);
+ File target = LocalReaderFrame.this.reader.getTarget(
+ luid, null);
Desktop.getDesktop().browse(target.toURI());
} catch (IOException e) {
Instance.syserr(e);
+ "unresponsive until it is downloaded...",
"Importing from URL", JOptionPane.QUESTION_MESSAGE);
if (url != null && !url.isEmpty()) {
- if (Main.imprt(url) != 0) {
+ if (Main.imprt(url, null) != 0) {
JOptionPane.showMessageDialog(LocalReaderFrame.this,
"Cannot import: " + url, "Imort error",
JOptionPane.ERROR_MESSAGE);