From: Niki Roo Date: Mon, 4 May 2020 07:53:01 +0000 (+0200) Subject: Navbar: fix page starting at 1 instead of min X-Git-Tag: fanfix-swing-1.2.0~38 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=2bbe01d2222a23123032c0a4c6f929cb1c364334;p=fanfix-swing.git Navbar: fix page starting at 1 instead of min --- diff --git a/src/be/nikiroo/fanfix_swing/gui/viewer/NavBar.java b/src/be/nikiroo/fanfix_swing/gui/viewer/NavBar.java index bc798157..152fcc9a 100644 --- a/src/be/nikiroo/fanfix_swing/gui/viewer/NavBar.java +++ b/src/be/nikiroo/fanfix_swing/gui/viewer/NavBar.java @@ -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() {