File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/io/github/compilerstuck/Control Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public void mousePressed(MouseEvent e) {
183183
184184 arraySizeTextField .setText (String .valueOf (arraySizeSlider .getValue ()));
185185 arraySizeTextField .addActionListener (e -> {
186- if (arraySizeTextField .getText ().equals (arraySizeTextField .getText ().replaceAll ("[^0-9]" , "" )) && arraySizeTextField .getText ().length () < 5 ) {
186+ if (arraySizeTextField .getText ().equals (arraySizeTextField .getText ().replaceAll ("[^0-9]" , "" )) && arraySizeTextField .getText ().length () < 6 ) {
187187 if (Integer .parseInt (arraySizeTextField .getText ()) > maxSize ) {
188188 arraySizeSlider .setValue (maxSize );
189189 arraySizeTextField .setText (String .valueOf (maxSize ));
@@ -197,7 +197,7 @@ public void mousePressed(MouseEvent e) {
197197
198198 arraySizeOkButton .setEnabled (false );
199199 arraySizeOkButton .addActionListener (e -> {
200- if (arraySizeTextField .getText ().equals (arraySizeTextField .getText ().replaceAll ("[^0-9]" , "" )) && arraySizeTextField .getText ().length () < 5 ) {
200+ if (arraySizeTextField .getText ().equals (arraySizeTextField .getText ().replaceAll ("[^0-9]" , "" )) && arraySizeTextField .getText ().length () < 6 ) {
201201 if (Integer .parseInt (arraySizeTextField .getText ()) > maxSize ) {
202202 arraySizeSlider .setValue (maxSize );
203203 arraySizeTextField .setText (String .valueOf (maxSize ));
You can’t perform that action at this time.
0 commit comments