PropertiesFrame -> PropertiesDialog
authorNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 17:22:27 +0000 (19:22 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 17:22:27 +0000 (19:22 +0200)
src/be/nikiroo/fanfix_swing/gui/BooksPanel.java
src/be/nikiroo/fanfix_swing/gui/BooksPanelActions.java
src/be/nikiroo/fanfix_swing/gui/PropertiesDialog.java [moved from src/be/nikiroo/fanfix_swing/gui/PropertiesFrame.java with 90% similarity]

index abab75233e9cced72aedbfe9537995d38c2e5429..6f5aaf19bc3c57cb3f299c46cad9cdb440be4e66 100644 (file)
@@ -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;
index 2495ca09d7a810ddbc910a7026391d6c13792e37..c802e0f740c90fafb4a04680122ff2e8eb14439f 100644 (file)
@@ -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);
                }
        }
similarity index 90%
rename from src/be/nikiroo/fanfix_swing/gui/PropertiesFrame.java
rename to src/be/nikiroo/fanfix_swing/gui/PropertiesDialog.java
index 2e59e921ef8c393443a683d66e65d76ab95266da..16023be944ae7edd7af14ba62f65380f68a3a1a7 100644 (file)
@@ -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);