Skip to content

Commit

Permalink
Corrected directory paths to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Lunev committed Feb 19, 2020
1 parent dcf3235 commit f4dda6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/pulse/ui/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static int threadsAvailable() {
}

public static ImageIcon loadIcon(String path, int iconSize) {
ImageIcon imageIcon = new ImageIcon(Launcher.class.getResource("/" + path)); // load the image to a imageIcon
ImageIcon imageIcon = new ImageIcon(Launcher.class.getResource("/images/" + path)); // load the image to a imageIcon
Image image = imageIcon.getImage(); // transform it
Image newimg = image.getScaledInstance(iconSize, iconSize, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way
return new ImageIcon(newimg); // transform it back
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/pulse/ui/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.ResourceBundle;

public class Messages {
private static final String BUNDLE_NAME = "pulse.ui.messages";
private static final String BUNDLE_NAME = "messages";

private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);

Expand Down

0 comments on commit f4dda6e

Please sign in to comment.