@@ -10,6 +10,7 @@ public class Display {
10
10
private Display () {}
11
11
private static final Display CLASS_OBJ = new Display ();
12
12
private static JFrame FRAME = new JFrame (RRConst .FULL_NAME );
13
+ private static JLabel AUTHOR = new JLabel ("by " + RRConst .AUTHOR );
13
14
private static JLabel TITLE = new JLabel (RRConst .TITLE );
14
15
private static JLabel DESC = new JLabel (RRConst .DESC );
15
16
private static JButton KEY_SALT_BUTTON = new JButton (RRConst .KEY_SALT_BUTTON );
@@ -19,13 +20,15 @@ private Display() {}
19
20
private static JButton ITUNES_BACKUP = new JButton (RRConst .ITUNES_BACKUP );
20
21
private static JButton KEYCHAIN_DUMPER = new JButton (RRConst .KEYCHAIN_DUMPER );
21
22
private static JButton ABOUT = new JButton (RRConst .ABOUT );
23
+ private static JLabel iOS_13 = new JLabel (RRConst .iOS_13 );
24
+ private static JLabel iOS_11 = new JLabel (RRConst .iOS_11 );
22
25
private static InfoPlist [] plists = null ;
23
26
private static boolean initialized = false ;
24
27
public static void createDisplay () {
25
28
if (!initialized ) {
26
29
Display .FRAME .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
27
30
Display .FRAME .setSize (550 , 400 );
28
- Display .FRAME .setLayout (new BoxLayout (FRAME .getContentPane (), BoxLayout .Y_AXIS ));
31
+ Display .FRAME .getContentPane (). setLayout (new BoxLayout (FRAME .getContentPane (), BoxLayout .Y_AXIS ));
29
32
Display .KEY_SALT_BUTTON .addActionListener (Display .CLASS_OBJ .new KeySaltButtonListener ());
30
33
Display .FILE_BUTTON .addActionListener (Display .CLASS_OBJ .new FileButtonListener ());
31
34
Display .SSH_BUTTON .addActionListener (Display .CLASS_OBJ .new SSHButtonListener ());
@@ -37,25 +40,29 @@ public static void createDisplay() {
37
40
initialized = true ;
38
41
}
39
42
Display .FRAME .getContentPane ().add (Display .TITLE );
43
+ Display .FRAME .getContentPane ().add (Display .AUTHOR );
40
44
Display .FRAME .getContentPane ().add (Display .DESC );
45
+ Display .FRAME .getContentPane ().add (Display .ABOUT );
46
+ Display .FRAME .getContentPane ().add (Display .iOS_11 );
41
47
Display .FRAME .getContentPane ().add (Display .KEY_SALT_BUTTON );
42
48
Display .FRAME .getContentPane ().add (Display .FILE_BUTTON );
43
49
Display .FRAME .getContentPane ().add (Display .SSH_BUTTON );
44
- Display .FRAME .getContentPane ().add (Display .KEYCHAIN_DUMPER );
45
50
Display .FRAME .getContentPane ().add (Display .ITUNES_BACKUP );
46
- Display .FRAME .getContentPane ().add (Display .ABOUT );
51
+ Display .FRAME .getContentPane ().add (Display .iOS_13 );
52
+ Display .FRAME .getContentPane ().add (Display .KEYCHAIN_DUMPER );
47
53
Display .FRAME .setVisible (true );
48
54
}
49
55
public class AboutListener implements ActionListener {
50
56
public void actionPerformed (ActionEvent ev ) {
51
57
Display .FRAME .getContentPane ().removeAll ();
52
58
JLabel title = new JLabel (RRConst .FULL_NAME );
53
- JLabel author = new JLabel ("<html><body> by Alyx Ferrari<br/></body></html>" );
59
+ JLabel author = new JLabel ("by " + RRConst . AUTHOR );
54
60
JLabel slf4j = new JLabel ("slf4j Copyright (c) 2004-2017 QOS.ch" );
55
61
JLabel bcJava = new JLabel ("bc-java Copyright (c) 2000-2019 The Legion of the Bouncy Castle Inc." );
56
62
JLabel sshj = new JLabel ("sshj Copyright (c) 2010-2012 sshj contributors" );
57
63
JLabel keychainDumper = new JLabel ("keychain_dumper was written by ptoomey3 on GitHub" );
58
64
JLabel backup = new JLabel ("The iTunes backup idea was given to me by Reddit users u/Starwarsfan2099 and u/KuroAMK" );
65
+ JLabel affiliation = new JLabel ("This program is in no way affiliated with Apple, Inc." );
59
66
JButton back = new JButton ("Back" );
60
67
back .addActionListener (new BackListener ());
61
68
Display .FRAME .getContentPane ().add (title );
@@ -65,6 +72,7 @@ public void actionPerformed(ActionEvent ev) {
65
72
Display .FRAME .getContentPane ().add (sshj );
66
73
Display .FRAME .getContentPane ().add (keychainDumper );
67
74
Display .FRAME .getContentPane ().add (backup );
75
+ Display .FRAME .getContentPane ().add (affiliation );
68
76
Display .FRAME .getContentPane ().add (back );
69
77
Display .refresh ();
70
78
}
0 commit comments