From: Erik V. <eri...@hc...> - 2009-01-16 20:42:56
|
Mark, You have been busy I see. I have pulled down the updates last night, and noticed about 100 warnings, which I think today's updates will probably resolve. I was going to mention it, but you may have them solved. I had announced it myself after my previous batch of commits. It was a side effect of the introduction of varargs. Warnings do no harm, but I had some spare time without the energy to do more useful things, so why not fix them all. I have been scratching my head over where the new icon under /rails/ui/images directory really needs to live in the archive (distribution directory on my mac) so that it can be found. And still not sure. When I do the compilation I get it to compile, and copy the icon in, but it claims it cannot find the icon -- probably because it is trying to find it via a full path specification, rather than relative to the java class files. All of the tiles images it finds, as well as the xml data files. Do you search for that icon file in a different way? It's in StartRoundWindow: String path = "/rails/ui/images/Inform.gif"; java.net.URL imgURL = getClass().getResource(path); if (imgURL != null) { return new ImageIcon(imgURL, "Info"); } I think I derived this code from Brett's GIF tile drawing code in ImageLoader. If you know a better way to do it, and/or a better way to store the icon, please go ahead. Erik. |