File tree Expand file tree Collapse file tree
src/main/java/me/grax/jbytemod/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import javax .swing .*;
88import javax .swing .border .EmptyBorder ;
99import java .awt .*;
10+ import java .time .Year ;
1011
1112public class JAboutFrame extends JDialog {
1213
@@ -33,11 +34,12 @@ private void initializeUI(JByteMod jbm) {
3334
3435 JTextPane titlePane = new JTextPane ();
3536 titlePane .setContentType ("text/html" );
37+ int currentYear = Year .now ().getValue ();
3638 titlePane .setText (TextUtils .toHtml (
3739 jbm .getTitle () +
3840 "<br/>Copyright \u00A9 2016-2018 noverify<br/><br/>" +
3941 "Copyright \u00A9 2019 Panda<br/><br/>" +
40- "Copyright \u00A9 2020-2024 xBrownieCodez<br/><br/>" +
42+ "Copyright \u00A9 2020-" + currentYear + " xBrownieCodez<br/><br/>" +
4143 "JByteMod by noverify, Reborn by Panda, Remastered by xBrownieCodez" +
4244 "<br/><font color=\" #0000EE\" ><u>https://github.com/xBrownieCodezV2/JByteMod-Remastered</u></font>"
4345 ));
Original file line number Diff line number Diff line change 55import javax .swing .*;
66import javax .swing .border .EmptyBorder ;
77import java .awt .*;
8+ import java .time .Year ;
89
910/**
1011 * Panel displayed at the bottom of the page.
1112 */
1213public class PageEndPanel extends JPanel {
13-
14- private static final String COPYRIGHT_TEXT = "\u00A9 brownie 2020 - 2024" ;
14+ private static final int currentYear = Year . now (). getValue ();
15+ private static final String COPYRIGHT_TEXT = "\u00A9 brownie 2020 - " + currentYear ;
1516 private JProgressBar progressBar ;
1617 private JLabel percentLabel ;
1718 private JLabel copyrightLabel ;
You can’t perform that action at this time.
0 commit comments