@@ -315,9 +315,8 @@ private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN
315
315
}
316
316
Statics .AESMode = 1 ;
317
317
AES .AESThread ();
318
-
319
318
try {
320
- Statics .fileCount = GUI .countFiles (Statics .path );
319
+ Statics .fileCount = GUI .countFiles2 (Statics .path );
321
320
} catch (IOException ex ) {
322
321
ex .printStackTrace ();
323
322
}
@@ -326,6 +325,7 @@ private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN
326
325
327
326
Statics .hotFilerState = false ;
328
327
jToggleButton1 .setSelected (false );
328
+
329
329
}//GEN-LAST:event_jRadioButton1ActionPerformed
330
330
331
331
@@ -360,24 +360,28 @@ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
360
360
private void jToggleButton1ActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_jToggleButton1ActionPerformed
361
361
Statics .hotFilerState ^= true ;
362
362
buttonGroup1 .clearSelection ();
363
+ Statics .AESMode = 0 ;
364
+ AES .AESThread ();
363
365
364
- // if (Statics.hotFilerState) {
365
- // GUI.labelCutterThread(jAlertLabel, "hot filer enabled", 30, 900);
366
- // } else {
367
- // GUI.labelCutterThread(jAlertLabel, "hot filer disabled", 30, 900 );
368
- // }
369
- try {
370
- Statics . AESMode = 0 ;
371
- AES . AESThread ();
372
- HotFiler .HotFilerThread ();
373
- jRadioButton0 .setSelected (true );
374
- Statics . fileCount = HotFiler . countNewFiles ( Statics . path );
375
- GUI . progressBarThread ();
376
-
377
- // Statics.AESMode = 0;
378
- } catch ( IOException ex ) {
379
- ex . printStackTrace ( );
366
+ GUI . progressBarThread ();
367
+ if ( Statics . hotFilerState ) {
368
+ try {
369
+ Statics . fileCount = HotFiler . countNewFiles ( Statics . path );
370
+
371
+ GUI . progressBarThread ();
372
+ GUI . labelCutterThread ( jAlertLabel , "hot filer enabled" , 30 , 30 , 900 ) ;
373
+
374
+ HotFiler .HotFilerThread ();
375
+ jRadioButton0 .setSelected (true );
376
+ } catch ( IOException ex ) {
377
+ ex . printStackTrace ();
378
+ }
379
+ } else {
380
+ AES . t . interrupt ();
381
+ GUI . labelCutterThread ( jAlertLabel , "hot filer disabled" , 30 , 30 , 900 );
380
382
}
383
+
384
+
381
385
}//GEN-LAST:event_jToggleButton1ActionPerformed
382
386
383
387
private void jTextField1ActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_jTextField1ActionPerformed
@@ -408,7 +412,7 @@ private void jRadioButton0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN
408
412
Statics .AESMode = 0 ;
409
413
AES .AESThread ();
410
414
try {
411
- Statics .fileCount = GUI .countFiles (Statics .path );
415
+ Statics .fileCount = GUI .countFiles2 (Statics .path );
412
416
} catch (IOException ex ) {
413
417
ex .printStackTrace ();
414
418
}
0 commit comments