Skip to content

Commit

Permalink
1.2.7
Browse files Browse the repository at this point in the history
- Updated CPU-Z to version 2.13.0
- Updated CrystalDiskMark to version 8.0.6
- Updated CrystalDiskInfo to version 9.5.0
- Updated NVCleanstall to version 1.17.0
- Updated DDU to version 18.0.8.9
- Updated Update Programs exlcusions list
- Improved null safety
  • Loading branch information
Foulest committed Jan 15, 2025
1 parent 3e47ca9 commit 4138cda
Show file tree
Hide file tree
Showing 29 changed files with 385 additions and 331 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'net.foulest'
version = '1.2.6'
version = '1.2.7'
description = 'RepairKit'

// Set the language level to Java 17
Expand Down
32 changes: 16 additions & 16 deletions src/main/java/net/foulest/repairkit/RepairKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static void main(String[] args) {

// Checks if RepairKit is running in the temp directory.
DebugUtil.debug("Checking if RepairKit is running in the temp directory...");
String path = FileUtil.tempDirectory.getPath();
@NotNull String path = FileUtil.tempDirectory.getPath();

if (System.getProperty("user.dir").equalsIgnoreCase(path)) {
SoundUtil.playSound(ConstantUtil.ERROR_SOUND);
Expand Down Expand Up @@ -138,13 +138,13 @@ private RepairKit() {

// Initialize the panels.
DebugUtil.debug("Initializing the Automatic Repairs panel...");
AutomaticRepairs automaticRepairs = new AutomaticRepairs();
@NotNull AutomaticRepairs automaticRepairs = new AutomaticRepairs();
DebugUtil.debug("Initializing the Useful Programs (Page 1) panel...");
UsefulPrograms1 usefulPrograms1 = new UsefulPrograms1();
@NotNull UsefulPrograms1 usefulPrograms1 = new UsefulPrograms1();
DebugUtil.debug("Initializing the Useful Programs (Page 2) panel...");
UsefulPrograms2 usefulPrograms2 = new UsefulPrograms2();
@NotNull UsefulPrograms2 usefulPrograms2 = new UsefulPrograms2();
DebugUtil.debug("Initializing the System Shortcuts panel...");
SystemShortcuts systemShortcuts = new SystemShortcuts();
@NotNull SystemShortcuts systemShortcuts = new SystemShortcuts();

// Creates the main panel.
DebugUtil.debug("Creating the main panel...");
Expand All @@ -156,7 +156,7 @@ private RepairKit() {

// Creates the banner panel.
DebugUtil.debug("Creating the banner panel...");
JPanel bannerPanel = createBannerPanel();
@NotNull JPanel bannerPanel = createBannerPanel();

// Adds the panels to the main panel.
DebugUtil.debug("Adding the panels to the main panel...");
Expand All @@ -182,23 +182,23 @@ private RepairKit() {
@NotNull
private JPanel createBannerPanel() {
// Creates the banner panel.
JPanel bannerPanel = new JPanel(new BorderLayout());
@NotNull JPanel bannerPanel = new JPanel(new BorderLayout());
bannerPanel.setLayout(null);
bannerPanel.setBackground(new Color(0, 120, 215));
int width = getWidth();
bannerPanel.setPreferredSize(new Dimension(width, 60));

// Creates the RepairKit icon image.
DebugUtil.debug("Creating the RepairKit icon image...");
ImageIcon imageIcon = FileUtil.getImageIcon("icons/RepairKit.png");
JLabel iconLabel = new JLabel(imageIcon);
@NotNull ImageIcon imageIcon = FileUtil.getImageIcon("icons/RepairKit.png");
@NotNull JLabel iconLabel = new JLabel(imageIcon);
iconLabel.setBounds(10, 10, 40, 40);
bannerPanel.add(iconLabel);
iconLabel.repaint();

// Creates the primary banner label.
DebugUtil.debug("Creating the primary banner label...");
JLabel bannerLabelPrimary = SwingUtil.createLabel("RepairKit",
@NotNull JLabel bannerLabelPrimary = SwingUtil.createLabel("RepairKit",
new Rectangle(60, 6, 200, 30),
new Font(ConstantUtil.ARIAL, Font.BOLD, 22)
);
Expand All @@ -207,7 +207,7 @@ private JPanel createBannerPanel() {

// Creates the secondary banner label.
DebugUtil.debug("Creating the secondary banner label...");
JLabel bannerLabelSecondary = SwingUtil.createLabel("by Foulest",
@NotNull JLabel bannerLabelSecondary = SwingUtil.createLabel("by Foulest",
new Rectangle(60, 31, 70, 20),
new Font(ConstantUtil.ARIAL, Font.PLAIN, 14)
);
Expand All @@ -218,7 +218,7 @@ private JPanel createBannerPanel() {

// Creates the version info label.
DebugUtil.debug("Creating the version info label...");
JLabel versionInfo = SwingUtil.createLabel("Version:",
@NotNull JLabel versionInfo = SwingUtil.createLabel("Version:",
new Rectangle(675, 5, 60, 30),
new Font(ConstantUtil.ARIAL, Font.BOLD, 14)
);
Expand All @@ -227,7 +227,7 @@ private JPanel createBannerPanel() {

// Creates the version number label.
DebugUtil.debug("Creating the version number label...");
JLabel versionNumber = SwingUtil.createLabel(UpdateUtil.getVersionFromProperties(),
@NotNull JLabel versionNumber = SwingUtil.createLabel(UpdateUtil.getVersionFromProperties(),
new Rectangle(700, 25, 35, 30),
new Font(ConstantUtil.ARIAL, Font.PLAIN, 14)
);
Expand All @@ -238,17 +238,17 @@ private JPanel createBannerPanel() {

// Creates the Automatic Repairs button.
DebugUtil.debug("Creating the Automatic Repairs button...");
JButton automaticRepairs = SwingUtil.createPanelButton("Automatic Repairs", "Automatic Repairs", new Rectangle(175, 10, 150, 40));
@NotNull JButton automaticRepairs = SwingUtil.createPanelButton("Automatic Repairs", "Automatic Repairs", new Rectangle(175, 10, 150, 40));
bannerPanel.add(automaticRepairs);

// Creates the Useful Programs button.
DebugUtil.debug("Creating the Useful Programs button...");
JButton usefulPrograms = SwingUtil.createPanelButton("Useful Programs", "Useful Programs (Page 1)", new Rectangle(325, 10, 150, 40));
@NotNull JButton usefulPrograms = SwingUtil.createPanelButton("Useful Programs", "Useful Programs (Page 1)", new Rectangle(325, 10, 150, 40));
bannerPanel.add(usefulPrograms);

// Creates the System Shortcuts button.
DebugUtil.debug("Creating the System Shortcuts button...");
JButton systemShortcuts = SwingUtil.createPanelButton("System Shortcuts", "System Shortcuts", new Rectangle(475, 10, 150, 40));
@NotNull JButton systemShortcuts = SwingUtil.createPanelButton("System Shortcuts", "System Shortcuts", new Rectangle(475, 10, 150, 40));
bannerPanel.add(systemShortcuts);
return bannerPanel;
}
Expand Down
Loading

0 comments on commit 4138cda

Please sign in to comment.