Navbar: fix page starting at 1 instead of min
authorNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 07:53:01 +0000 (09:53 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 07:53:01 +0000 (09:53 +0200)
src/be/nikiroo/fanfix_swing/gui/viewer/NavBar.java

index bc79815790b8de7cb79eedea7746229b15477905..152fcc9aa2407a0945f2e4cf2adc1ad346c8126d 100644 (file)
@@ -81,7 +81,7 @@ public class NavBar extends ListenerPanel {
                        }
                });
 
-               page = new JTextField("1");
+               page = new JTextField(Integer.toString(min));
                page.setPreferredSize(new Dimension(page.getPreferredSize().width * 2,
                                page.getPreferredSize().height));
                page.addActionListener(new ActionListener() {