uschindler commented on a change in pull request #567:
URL: https://github.com/apache/lucene/pull/567#discussion_r775125157



##########
File path: 
lucene/luke/src/java/org/apache/lucene/luke/app/desktop/util/ImageUtils.java
##########
@@ -19,18 +19,19 @@
 
 import java.awt.Image;
 import javax.swing.ImageIcon;
+import org.apache.lucene.luke.app.desktop.LukeMain;
 
 /** Image utilities */
 public class ImageUtils {
 
-  private static final String IMAGE_BASE_DIR = 
"org/apache/lucene/luke/app/desktop/img/";
+  private static final String IMAGE_BASE_DIR = "img/";
 
   public static ImageIcon createImageIcon(String name, int width, int height) {
     return createImageIcon(name, "", width, height);
   }
 
   public static ImageIcon createImageIcon(String name, String description, int 
width, int height) {
-    java.net.URL imgURL = 
ImageUtils.class.getClassLoader().getResource(IMAGE_BASE_DIR + name);
+    java.net.URL imgURL = LukeMain.class.getResource(IMAGE_BASE_DIR + name);

Review comment:
       If you want to make a separate PR and issue just go ahead. It is 
unrelated to this issue. I just grepped for getResourceAsStream and found this 
one.
   
   This one here will be delayed and I am also in Xmas mode. 🌲




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to