Skip to content

Commit 6e57ea0

Browse files
committed
removed demo version
1 parent 81684e9 commit 6e57ea0

File tree

3 files changed

+68
-74
lines changed

3 files changed

+68
-74
lines changed

src/main/java/com/mycompany/autobackupprogram/BackupManagerGUI.form

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@
252252
<Image iconType="3" name="/res/img/donation.png"/>
253253
</Property>
254254
<Property name="text" type="java.lang.String" value="Donate"/>
255-
<Property name="enabled" type="boolean" value="false"/>
256255
</Properties>
257256
<Events>
258257
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="MenuDonateActionPerformed"/>
@@ -370,57 +369,51 @@
370369
<DimensionLayout dim="0">
371370
<Group type="103" groupAlignment="0" attributes="0">
372371
<Group type="102" attributes="0">
373-
<Group type="103" groupAlignment="0" attributes="0">
374-
<Group type="102" alignment="0" attributes="0">
375-
<EmptySpace min="-2" pref="248" max="-2" attributes="0"/>
376-
<Group type="103" groupAlignment="0" attributes="0">
372+
<EmptySpace min="-2" pref="248" max="-2" attributes="0"/>
373+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
374+
<Group type="102" attributes="0">
375+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
376+
<Component id="jLabel2" max="32767" attributes="0"/>
377377
<Group type="102" attributes="0">
378-
<Group type="103" groupAlignment="0" max="-2" attributes="0">
379-
<Component id="jLabel2" max="32767" attributes="0"/>
380-
<Group type="102" attributes="0">
381-
<Group type="103" groupAlignment="0" attributes="0">
382-
<Component id="destinationPathField" alignment="1" max="-2" attributes="0"/>
383-
<Component id="startPathField" alignment="0" max="-2" attributes="0"/>
384-
</Group>
385-
<EmptySpace min="4" pref="4" max="-2" attributes="0"/>
386-
</Group>
387-
</Group>
388378
<Group type="103" groupAlignment="0" attributes="0">
389-
<Group type="102" alignment="0" attributes="0">
390-
<EmptySpace max="-2" attributes="0"/>
391-
<Component id="btnPathSearch2" min="-2" pref="34" max="-2" attributes="0"/>
392-
</Group>
393-
<Group type="102" alignment="1" attributes="0">
394-
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
395-
<Component id="btnPathSearch1" min="-2" pref="34" max="-2" attributes="0"/>
396-
</Group>
379+
<Component id="destinationPathField" alignment="1" max="-2" attributes="0"/>
380+
<Component id="startPathField" alignment="0" max="-2" attributes="0"/>
397381
</Group>
382+
<EmptySpace min="4" pref="4" max="-2" attributes="0"/>
398383
</Group>
399-
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
400-
<Component id="lastBackupLabel" min="-2" pref="461" max="-2" attributes="0"/>
401-
<Component id="jScrollPane2" min="-2" pref="462" max="-2" attributes="0"/>
402-
</Group>
403-
<Component id="currentFileLabel" alignment="0" min="-2" pref="457" max="-2" attributes="0"/>
404384
</Group>
405-
</Group>
406-
<Group type="102" alignment="0" attributes="0">
407-
<EmptySpace min="-2" pref="311" max="-2" attributes="0"/>
408-
<Component id="txtTitle" min="-2" max="-2" attributes="0"/>
409-
</Group>
410-
<Group type="102" alignment="0" attributes="0">
411-
<EmptySpace min="-2" pref="377" max="-2" attributes="0"/>
412385
<Group type="103" groupAlignment="0" attributes="0">
413-
<Group type="102" attributes="0">
414-
<Component id="toggleAutoBackup" min="-2" pref="188" max="-2" attributes="0"/>
386+
<Group type="102" alignment="0" attributes="0">
415387
<EmptySpace max="-2" attributes="0"/>
416-
<Component id="btnTimePicker" min="-2" pref="34" max="-2" attributes="0"/>
388+
<Component id="btnPathSearch2" min="-2" pref="34" max="-2" attributes="0"/>
389+
</Group>
390+
<Group type="102" alignment="1" attributes="0">
391+
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
392+
<Component id="btnPathSearch1" min="-2" pref="34" max="-2" attributes="0"/>
417393
</Group>
418-
<Component id="SingleBackup" min="-2" pref="188" max="-2" attributes="0"/>
419394
</Group>
420395
</Group>
396+
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
397+
<Component id="lastBackupLabel" min="-2" pref="461" max="-2" attributes="0"/>
398+
<Component id="jScrollPane2" min="-2" pref="462" max="-2" attributes="0"/>
399+
</Group>
400+
<Component id="currentFileLabel" alignment="1" max="32767" attributes="0"/>
401+
<Component id="txtTitle" alignment="0" min="-2" pref="466" max="-2" attributes="0"/>
421402
</Group>
422403
<EmptySpace pref="211" max="32767" attributes="0"/>
423404
</Group>
405+
<Group type="102" alignment="1" attributes="0">
406+
<EmptySpace max="32767" attributes="0"/>
407+
<Group type="103" groupAlignment="0" attributes="0">
408+
<Group type="102" alignment="0" attributes="0">
409+
<Component id="toggleAutoBackup" min="-2" pref="188" max="-2" attributes="0"/>
410+
<EmptySpace max="-2" attributes="0"/>
411+
<Component id="btnTimePicker" min="-2" pref="34" max="-2" attributes="0"/>
412+
</Group>
413+
<Component id="SingleBackup" min="-2" pref="188" max="-2" attributes="0"/>
414+
</Group>
415+
<EmptySpace min="-2" pref="351" max="-2" attributes="0"/>
416+
</Group>
424417
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
425418
<Group type="102" attributes="0">
426419
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
@@ -453,14 +446,14 @@
453446
<Component id="jScrollPane2" min="-2" pref="190" max="-2" attributes="0"/>
454447
<EmptySpace type="unrelated" max="-2" attributes="0"/>
455448
<Component id="lastBackupLabel" min="-2" max="-2" attributes="0"/>
456-
<EmptySpace type="separate" max="-2" attributes="0"/>
449+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
457450
<Component id="SingleBackup" min="-2" pref="36" max="-2" attributes="0"/>
458451
<EmptySpace max="-2" attributes="0"/>
459452
<Group type="103" groupAlignment="0" attributes="0">
460453
<Component id="toggleAutoBackup" min="-2" pref="36" max="-2" attributes="0"/>
461454
<Component id="btnTimePicker" min="-2" pref="31" max="-2" attributes="0"/>
462455
</Group>
463-
<EmptySpace min="-2" pref="51" max="-2" attributes="0"/>
456+
<EmptySpace min="-2" pref="57" max="-2" attributes="0"/>
464457
</Group>
465458
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
466459
<Group type="102" attributes="0">
@@ -478,10 +471,11 @@
478471
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
479472
<Font name="Segoe UI" size="36" style="0"/>
480473
</Property>
474+
<Property name="horizontalAlignment" type="int" value="0"/>
481475
<Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
482476
<ComponentRef name="txtTitle"/>
483477
</Property>
484-
<Property name="text" type="java.lang.String" value="DEMO - Backup Entry"/>
478+
<Property name="text" type="java.lang.String" value="Backup Entry"/>
485479
<Property name="toolTipText" type="java.lang.String" value=""/>
486480
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
487481
<Color id="Default Cursor"/>

src/main/java/com/mycompany/autobackupprogram/BackupManagerGUI.java

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
10531053
jPanel1.setMaximumSize(new java.awt.Dimension(464, 472));
10541054

10551055
txtTitle.setFont(new java.awt.Font("Segoe UI", 0, 36)); // NOI18N
1056+
txtTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
10561057
txtTitle.setLabelFor(txtTitle);
1057-
txtTitle.setText("DEMO - Backup Entry");
1058+
txtTitle.setText("Backup Entry");
10581059
txtTitle.setToolTipText("");
10591060
txtTitle.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
10601061
txtTitle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
@@ -1146,41 +1147,38 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
11461147
jPanel1Layout.setHorizontalGroup(
11471148
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
11481149
.addGroup(jPanel1Layout.createSequentialGroup()
1149-
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1150+
.addGap(248, 248, 248)
1151+
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
11501152
.addGroup(jPanel1Layout.createSequentialGroup()
1151-
.addGap(248, 248, 248)
1152-
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1153+
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
1154+
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
11531155
.addGroup(jPanel1Layout.createSequentialGroup()
1154-
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
1155-
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
1156-
.addGroup(jPanel1Layout.createSequentialGroup()
1157-
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1158-
.addComponent(destinationPathField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
1159-
.addComponent(startPathField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
1160-
.addGap(4, 4, 4)))
11611156
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1162-
.addGroup(jPanel1Layout.createSequentialGroup()
1163-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
1164-
.addComponent(btnPathSearch2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
1165-
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
1166-
.addGap(2, 2, 2)
1167-
.addComponent(btnPathSearch1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))))
1168-
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
1169-
.addComponent(lastBackupLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 461, javax.swing.GroupLayout.PREFERRED_SIZE)
1170-
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 462, javax.swing.GroupLayout.PREFERRED_SIZE))
1171-
.addComponent(currentFileLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 457, javax.swing.GroupLayout.PREFERRED_SIZE)))
1172-
.addGroup(jPanel1Layout.createSequentialGroup()
1173-
.addGap(311, 311, 311)
1174-
.addComponent(txtTitle))
1175-
.addGroup(jPanel1Layout.createSequentialGroup()
1176-
.addGap(377, 377, 377)
1157+
.addComponent(destinationPathField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
1158+
.addComponent(startPathField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
1159+
.addGap(4, 4, 4)))
11771160
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
11781161
.addGroup(jPanel1Layout.createSequentialGroup()
1179-
.addComponent(toggleAutoBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
11801162
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
1181-
.addComponent(btnTimePicker, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
1182-
.addComponent(SingleBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))))
1163+
.addComponent(btnPathSearch2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
1164+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
1165+
.addGap(2, 2, 2)
1166+
.addComponent(btnPathSearch1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))))
1167+
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
1168+
.addComponent(lastBackupLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 461, javax.swing.GroupLayout.PREFERRED_SIZE)
1169+
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 462, javax.swing.GroupLayout.PREFERRED_SIZE))
1170+
.addComponent(currentFileLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
1171+
.addComponent(txtTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 466, javax.swing.GroupLayout.PREFERRED_SIZE))
11831172
.addContainerGap(211, Short.MAX_VALUE))
1173+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
1174+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
1175+
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1176+
.addGroup(jPanel1Layout.createSequentialGroup()
1177+
.addComponent(toggleAutoBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
1178+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
1179+
.addComponent(btnTimePicker, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
1180+
.addComponent(SingleBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
1181+
.addGap(351, 351, 351))
11841182
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
11851183
.addGroup(jPanel1Layout.createSequentialGroup()
11861184
.addGap(0, 0, Short.MAX_VALUE)
@@ -1208,13 +1206,13 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
12081206
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
12091207
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
12101208
.addComponent(lastBackupLabel)
1211-
.addGap(18, 18, 18)
1209+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
12121210
.addComponent(SingleBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
12131211
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
12141212
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
12151213
.addComponent(toggleAutoBackup, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
12161214
.addComponent(btnTimePicker, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
1217-
.addGap(51, 51, 51))
1215+
.addGap(57, 57, 57))
12181216
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
12191217
.addGroup(jPanel1Layout.createSequentialGroup()
12201218
.addGap(0, 0, Short.MAX_VALUE)
@@ -1447,7 +1445,6 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
14471445

14481446
MenuDonate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/img/donation.png"))); // NOI18N
14491447
MenuDonate.setText("Donate");
1450-
MenuDonate.setEnabled(false);
14511448
MenuDonate.addActionListener(new java.awt.event.ActionListener() {
14521449
public void actionPerformed(java.awt.event.ActionEvent evt) {
14531450
MenuDonateActionPerformed(evt);

src/main/resources/res/log_file

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-11T20:11:26.001807700 [INFO] The application is running with administrator privileges.
2+
2024-11-11T20:11:25.483983600 [DEBUG] Background mode: false
3+
2024-11-11T20:11:25.464640200 [INFO] Application started
14
2024-11-10T22:28:42.186121 [INFO] Background service stopped
25
2024-11-10T22:28:42.179176800 [DEBUG] Stopping background service
36
2024-11-10T22:28:32.131683600 [INFO] Next date backup setted to: 2024-11-10T22:29:32.119782400

0 commit comments

Comments
 (0)