Re: Loading and Displaying Images

2019-09-17 Thread Judi Rastall
I have managed to compare the jar files and all my images are in both. However, the later jar file includes all sorts of extraneous files which are in the project but not referenced by any of my java source files. the listing includes separate lines for the directory name too. Judi R On 17/0

RE: Loading and Displaying Images

2019-09-17 Thread Lister Jonathan
You can also rename any .jar file as .zip and use standard zip tools to examine the contents of the jar ;-) From: Thomas Wolf Sent: Tuesday, 17 September, 2019 16:26 To: Judi Rastall Cc: NetBeans Mailing Subject: Re: Loading and Displaying Images The java development kit comes with the 

Re: Loading and Displaying Images

2019-09-17 Thread Judi Rastall
I've looked again at the messages I get when building and I am wondering is y directory structure is confusing the compiler. This is the message stream: ant -f E:\\Judith\\NetBeansProjects\\WagonFlow5 -Dnb.internal.action.name=rebuild clean jar init: deps-clean: Updating property file: E:\Judi

Re: Loading and Displaying Images

2019-09-17 Thread Thomas Wolf
The java development kit comes with the 'jar' command (the example of how to do it uses that; on Unix machines the "diff" command lets you view differences between two files). from a command-prompt, you would type "jar tf theNameOfYourWorkingJarFile" to see a listing of all the classes in that jar

Re: Loading and Displaying Images

2019-09-17 Thread Judi Rastall
Tom, How do I look at the contents of a jar file? Is there a jar file viewer or decompiler? Judi On 17/09/2019 16:03, Thomas Wolf wrote: Judi, I would compare the contents of your jar files - the one that works vs. the one that now doesn't work.  i.e. jar tf workginJarFile.jar > l1; jar tf

Re: Loading and Displaying Images

2019-09-17 Thread Thomas Wolf
Judi, I would compare the contents of your jar files - the one that works vs. the one that now doesn't work. i.e. jar tf workginJarFile.jar > l1; jar tf nonWorkingJarFile.jar > l2; diff l1 l2. This might help you see if, for whatever reason, the images didn't make it into your current jar file.

Loading and Displaying Images

2019-09-17 Thread Judi Rastall
I am working on an application that needs to load various images and there seem to be a million different ways to do this in the examples I have found online. The method I have found to work most reliably until recently is this: LogoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResour