From 1da235bbdf20e5aea88be03780f136f3539d8803 Mon Sep 17 00:00:00 2001 From: Joel Snape Date: Sat, 8 Oct 2016 19:03:48 +0100 Subject: [PATCH] Corrected conversion exception (from long to UnsignedInteger) on linux oracle and open jdk. --- .../main/java/com/lyndir/masterpassword/gui/PasswordFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java index d3d1d144..0f2127de 100755 --- a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java +++ b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java @@ -119,7 +119,7 @@ public class PasswordFrame extends JFrame implements DocumentListener { siteVersionField = Components.comboBox( MasterKey.Version.values() ), // Components.stud(), // siteCounterField = Components.spinner( - new SpinnerNumberModel( 1L, 1L, UnsignedInteger.MAX_VALUE, 1L ) ) ); + new SpinnerNumberModel( UnsignedInteger.ONE, UnsignedInteger.ONE, UnsignedInteger.MAX_VALUE, UnsignedInteger.ONE ) ) ); sitePanel.add( siteSettings ); siteTypeField.setFont( Res.valueFont().deriveFont( 12f ) ); siteTypeField.setSelectedItem( MPSiteType.GeneratedLong );