From: Niki Roo Date: Mon, 4 May 2020 17:22:27 +0000 (+0200) Subject: PropertiesFrame -> PropertiesDialog X-Git-Tag: fanfix-swing-1.2.0~17 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=d5afd78344783b0a77d6c479951b4c56061fbcc9;p=fanfix-swing.git PropertiesFrame -> PropertiesDialog --- diff --git a/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java b/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java index abab7523..6f5aaf19 100644 --- a/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java +++ b/src/be/nikiroo/fanfix_swing/gui/BooksPanel.java @@ -262,7 +262,7 @@ public class BooksPanel extends ListenerPanel { boolean undecorated) { MetaData meta = book == null ? null : book.getMeta(); if (meta != null) { - PropertiesFrame tooltip = new PropertiesFrame( + PropertiesDialog tooltip = new PropertiesDialog( Instance.getInstance().getLibrary(), meta, undecorated); return tooltip; diff --git a/src/be/nikiroo/fanfix_swing/gui/BooksPanelActions.java b/src/be/nikiroo/fanfix_swing/gui/BooksPanelActions.java index 2495ca09..c802e0f7 100644 --- a/src/be/nikiroo/fanfix_swing/gui/BooksPanelActions.java +++ b/src/be/nikiroo/fanfix_swing/gui/BooksPanelActions.java @@ -394,7 +394,7 @@ public class BooksPanelActions { BasicLibrary lib = Instance.getInstance().getLibrary(); BookInfo selected = informer.getUniqueSelected(); if (selected != null) { - new PropertiesFrame(lib, selected.getMeta(), false) + new PropertiesDialog(lib, selected.getMeta(), false) .setVisible(true); } } diff --git a/src/be/nikiroo/fanfix_swing/gui/PropertiesFrame.java b/src/be/nikiroo/fanfix_swing/gui/PropertiesDialog.java similarity index 90% rename from src/be/nikiroo/fanfix_swing/gui/PropertiesFrame.java rename to src/be/nikiroo/fanfix_swing/gui/PropertiesDialog.java index 2e59e921..16023be9 100644 --- a/src/be/nikiroo/fanfix_swing/gui/PropertiesFrame.java +++ b/src/be/nikiroo/fanfix_swing/gui/PropertiesDialog.java @@ -17,12 +17,12 @@ import be.nikiroo.fanfix_swing.gui.utils.UiHelper; * * @author niki */ -public class PropertiesFrame extends JDialog { +public class PropertiesDialog extends JDialog { private static final long serialVersionUID = 1L; private JPanel desc; /** - * Create a new {@link PropertiesFrame}. + * Create a new {@link PropertiesDialog}. * * @param lib * the library to use for the cover image @@ -32,7 +32,7 @@ public class PropertiesFrame extends JDialog { * do not draw the usual window decorations * (close/minimize/maximize) */ - public PropertiesFrame(BasicLibrary lib, MetaData meta, + public PropertiesDialog(BasicLibrary lib, MetaData meta, boolean undecorated) { this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); this.setUndecorated(undecorated);