Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 628356b

Browse filesBrowse files
committed
1. Debugged checkLicense()
2. Added Jlablel with e-mail
1 parent 9b9479b commit 628356b
Copy full SHA for 628356b

File tree

Expand file treeCollapse file tree

4 files changed

+19
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+19
-5
lines changed
Open diff view settings
Collapse file

‎src/main/java/Controller/Controller.java‎

Copy file name to clipboardExpand all lines: src/main/java/Controller/Controller.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ public class Controller {
3434

3535

3636
static public void main(String[] args) {
37+
BaseConstants.getInstance();
3738
startFrame = new StartUpWindow();
3839
startFrame.setVisible(true);
3940
if (!checkLisence(BaseConstants.isIsZip())) {
4041
startFrame.dispose();
41-
new LogginWindow();
42+
new LicenseWindow();
4243
} else {
4344
init(BaseConstants.getInstance().isIsZip());
4445
}
@@ -85,6 +86,9 @@ private static boolean checkLisence(boolean b) {
8586
}
8687
return false;
8788
} else {
89+
/*если изфайла*/
90+
91+
8892
return true;
8993
}
9094
}
@@ -161,6 +165,7 @@ public static boolean checkKey(String text) {
161165
if (decodeData == null) return false;
162166
Calendar c = stringToCalendar(decodeData);
163167
if (c == null) return false;
168+
c.add(Calendar.MONTH,-1);
164169
if (c.getTimeInMillis() - getCurrentDate().getTimeInMillis() >= 0) {
165170
return true;
166171
} else {
Collapse file
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
import java.io.InputStream;
1717
import java.io.UnsupportedEncodingException;
1818

19-
public class LogginWindow extends JFrame {
20-
private JLabel textLabel = new JLabel("The period of use of the software has expired. Enter the new key.");
19+
public class LicenseWindow extends JFrame {
20+
private JLabel textLabel = new JLabel("<html>The period of use of the software has expired. Enter the new key.<br>Contact e-mail: albtutanota@tutanota.com<html>");
2121
private JLabel logginLabel = new JLabel(" Please, enter here new key: ");
2222
private JTextField logginText = new JTextField(60);
2323
private JButton logginButton = new JButton("Enter key");
2424

2525

2626

2727

28-
public LogginWindow() throws HeadlessException {
28+
public LicenseWindow() throws HeadlessException {
2929
super ("License window");
3030
setSize(new Dimension(400,150));
3131
setLayout(new BorderLayout());
@@ -35,6 +35,7 @@ public LogginWindow() throws HeadlessException {
3535
c.add(logginLabel,BorderLayout.WEST);
3636
c.add(logginText,BorderLayout.CENTER);
3737
c.add (logginButton,BorderLayout.SOUTH);
38+
//c.add(new JLabel("Contact e-mail: albtutanota@tutanota.com"),BorderLayout.SOUTH);
3839
setVisible(true);
3940
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
4041
logginButton.addActionListener(new ActionListener() {
Collapse file

‎src/main/java/Frames/MyFrame.java‎

Copy file name to clipboardExpand all lines: src/main/java/Frames/MyFrame.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ public MyFrame (String title, Map<SqlProperties,Boolean> statusMap){
2828
JSplitPane jSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true);
2929
jSplitPane.setRightComponent(resultView);
3030
jSplitPane.setLeftComponent(proccessesPanel);
31-
c.add(jSplitPane);
31+
BorderLayout bl = new BorderLayout();
32+
c.setLayout(bl);
33+
c.add(jSplitPane,BorderLayout.CENTER);
34+
c.add(new JLabel("Contact e-mail: albtutanota@tutanota.com"),BorderLayout.SOUTH);
3235

3336

3437
}
Collapse file

‎src/main/java/Utilz/Desipher.java‎

Copy file name to clipboardExpand all lines: src/main/java/Utilz/Desipher.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import java.util.GregorianCalendar;
66

77
public class Desipher {
8+
9+
public static void main(String[] args) {
10+
System.out.println(decodeData("e3x1x17"));
11+
System.out.println(encodeData("01/03/2019"));
12+
}
813
public static String decodeData(String s){
914
String decodedData = s.substring(s.length()-1,s.length()) +
1015
s.substring(0,s.length()-1);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.