Skip to content

Commit 2878774

Browse files
committed
Move resources
1 parent 156ab9d commit 2878774

26 files changed

+26
-26
lines changed

src/main/java/the/bytecode/club/jda/InitialBootScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ else if (i >= 440)
5353
JEditorPane editorPane = new JEditorPane();
5454
editorPane.setEditorKit(new HTMLEditorKit());
5555
editorPane.setEditable(false);
56-
editorPane.setText(IOUtils.toString(Resources.class.getResourceAsStream("/intro.html"), "UTF-8"));
56+
editorPane.setText(IOUtils.toString(Resources.class.getResourceAsStream("/html/intro.html"), "UTF-8"));
5757

5858
scrollPane.setViewportView(editorPane);
5959

src/main/java/the/bytecode/club/jda/Resources.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@
1515
*/
1616

1717
public class Resources {
18-
public static ImageIcon nextIcon = new ImageIcon(Resources.class.getClass().getResource("/nextIcon.png"));
19-
public static ImageIcon prevIcon = new ImageIcon(Resources.class.getClass().getResource("/prevIcon.png"));
20-
public static ImageIcon busyIcon = new ImageIcon(Resources.class.getClass().getResource("/1.gif"));
21-
public static ImageIcon busyB64Icon = new ImageIcon(Resources.class.getClass().getResource("/busyIcon2.gif"));
22-
public static ImageIcon batIcon = new ImageIcon(Resources.class.getClass().getResource("/bat.png"));
23-
public static ImageIcon shIcon = new ImageIcon(Resources.class.getClass().getResource("/sh.png"));
24-
public static ImageIcon csharpIcon = new ImageIcon(Resources.class.getClass().getResource("/c#.png"));
25-
public static ImageIcon cplusplusIcon = new ImageIcon(Resources.class.getClass().getResource("/c++.png"));
26-
public static ImageIcon configIcon = new ImageIcon(Resources.class.getClass().getResource("/config.png"));
27-
public static ImageIcon jarIcon = new ImageIcon(Resources.class.getClass().getResource("/jar.png"));
28-
public static ImageIcon zipIcon = new ImageIcon(Resources.class.getClass().getResource("/zip.png"));
29-
public static ImageIcon packagesIcon = new ImageIcon(Resources.class.getClass().getResource("/package.png"));
30-
public static ImageIcon folderIcon = new ImageIcon(Resources.class.getClass().getResource("/folder.png"));
31-
public static ImageIcon fileIcon = new ImageIcon(Resources.class.getClass().getResource("/file.png"));
32-
public static ImageIcon textIcon = new ImageIcon(Resources.class.getClass().getResource("/text.png"));
33-
public static ImageIcon classIcon = new ImageIcon(Resources.class.getClass().getResource("/class.png"));
34-
public static ImageIcon imageIcon = new ImageIcon(Resources.class.getClass().getResource("/image.png"));
35-
public static ImageIcon decodedIcon = new ImageIcon(Resources.class.getClass().getResource("/decoded.png"));
36-
public static ImageIcon javaIcon = new ImageIcon(Resources.class.getClass().getResource("/java.png"));
37-
38-
public static ImageIcon fileNavigatorIcon = new ImageIcon(Resources.class.getClass().getResource("/icon.png"));
18+
public static ImageIcon nextIcon = new ImageIcon(Resources.class.getClass().getResource("/images/nextIcon.png"));
19+
public static ImageIcon prevIcon = new ImageIcon(Resources.class.getClass().getResource("/images/prevIcon.png"));
20+
public static ImageIcon busyIcon = new ImageIcon(Resources.class.getClass().getResource("/images/1.gif"));
21+
public static ImageIcon busyB64Icon = new ImageIcon(Resources.class.getClass().getResource("/images/busyIcon2.gif"));
22+
public static ImageIcon batIcon = new ImageIcon(Resources.class.getClass().getResource("/images/bat.png"));
23+
public static ImageIcon shIcon = new ImageIcon(Resources.class.getClass().getResource("/images/sh.png"));
24+
public static ImageIcon csharpIcon = new ImageIcon(Resources.class.getClass().getResource("/images/c#.png"));
25+
public static ImageIcon cplusplusIcon = new ImageIcon(Resources.class.getClass().getResource("/images/c++.png"));
26+
public static ImageIcon configIcon = new ImageIcon(Resources.class.getClass().getResource("/images/config.png"));
27+
public static ImageIcon jarIcon = new ImageIcon(Resources.class.getClass().getResource("/images/jar.png"));
28+
public static ImageIcon zipIcon = new ImageIcon(Resources.class.getClass().getResource("/images/zip.png"));
29+
public static ImageIcon packagesIcon = new ImageIcon(Resources.class.getClass().getResource("/images/package.png"));
30+
public static ImageIcon folderIcon = new ImageIcon(Resources.class.getClass().getResource("/images/folder.png"));
31+
public static ImageIcon fileIcon = new ImageIcon(Resources.class.getClass().getResource("/images/file.png"));
32+
public static ImageIcon textIcon = new ImageIcon(Resources.class.getClass().getResource("/images/text.png"));
33+
public static ImageIcon classIcon = new ImageIcon(Resources.class.getClass().getResource("/images/class.png"));
34+
public static ImageIcon imageIcon = new ImageIcon(Resources.class.getClass().getResource("/images/image.png"));
35+
public static ImageIcon decodedIcon = new ImageIcon(Resources.class.getClass().getResource("/images/decoded.png"));
36+
public static ImageIcon javaIcon = new ImageIcon(Resources.class.getClass().getResource("/images/java.png"));
37+
38+
public static ImageIcon fileNavigatorIcon = new ImageIcon(Resources.class.getClass().getResource("/images/icon.png"));
3939

4040
public static ArrayList<BufferedImage> iconList;
4141
public static BufferedImage icon;
4242

4343
static {
4444
try {
45-
icon = ImageIO.read(Resources.class.getClass().getResourceAsStream("/icon.png"));
45+
icon = ImageIO.read(Resources.class.getClass().getResourceAsStream("/images/icon.png"));
4646
} catch (IOException e) {
4747
System.err.println("Failed to load program icon:");
4848
e.printStackTrace();

src/main/java/the/bytecode/club/jda/gui/dialogs/AboutWindow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public AboutWindow() {
3636
editorPane.setContentType("text/html");
3737
editorPane.setEditable(false);
3838
try {
39-
String text = IOUtils.toString(Resources.class.getResourceAsStream("/about.html"), "UTF-8");
39+
String text = IOUtils.toString(Resources.class.getResourceAsStream("/html/about.html"), "UTF-8");
4040
text = text.replace("$JDA_VERSION$", JDA.version + (JDA.previewCopy ? " (preview)" : ""));
41-
text = text.replace("$JDA_ICON$", Resources.class.getClass().getResource("/icon.png").toString());
41+
text = text.replace("$JDA_ICON$", Resources.class.getClass().getResource("/images/icon.png").toString());
4242
editorPane.setText(text);
4343
} catch (IOException e) {
4444
System.err.println("Couldn't load about html:");

src/main/java/the/bytecode/club/jda/gui/dialogs/IntroWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public IntroWindow() {
3030
editorPane.setContentType("text/html");
3131
editorPane.setEditable(false);
3232
try {
33-
editorPane.setText(IOUtils.toString(Resources.class.getResourceAsStream("/intro.html"), "UTF-8"));
33+
editorPane.setText(IOUtils.toString(Resources.class.getResourceAsStream("/html/intro.html"), "UTF-8"));
3434
} catch (IOException e) {
3535
System.err.println("Couldn't load intro html:");
3636
e.printStackTrace();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)