Click to See Complete Forum and Search --> : Why isn't it working?
Frank1984
09-24-2004, 02:09 AM
Does anybody know why this doesn't work?
http://www.voordeligewebsites.com/animatedjpg/indexjava.htm
It is suppose to be a slide show but the images aren't moving. I copied the gallery.jar file to my webserver so it should all work. What am I doing wrong?
Maybe anybody else knows a better Java applet. A never did anything in Java before so I don't knoe anything about it. The applet from my website, I copied it from another website.
Thanks
HaganeNoKokoro
09-24-2004, 02:40 AM
According to the java console
java.lang.ArrayIndexOutOfBoundsException: 53328
at ImageMixer.getNextFrame(ImageMixer.java:125)
at Gallery.run(Gallery.java:87)
at java.lang.Thread.run(Unknown Source)
is why it doesn't work. Without a look at the source, however, there's not a lot I can do.
EDIT: After a little testing, it looks like your applet size must be set to the size of the images, or smaller. Also, When testing with a few small images (under 100X100 pixels) it whipped through transitions so fast you could hardly see them.
Frank1984
09-24-2004, 06:44 AM
Originally posted by HaganeNoKokoro
According to the java console
java.lang.ArrayIndexOutOfBoundsException: 53328
at ImageMixer.getNextFrame(ImageMixer.java:125)
at Gallery.run(Gallery.java:87)
at java.lang.Thread.run(Unknown Source)
is why it doesn't work. Without a look at the source, however, there's not a lot I can do.
EDIT: After a little testing, it looks like your applet size must be set to the size of the images, or smaller. Also, When testing with a few small images (under 100X100 pixels) it whipped through transitions so fast you could hardly see them.
Thanks!
Check: http://www.voordeligewebsites.com/animatedjpg
Yeah, I made the size smaller and now it's working, but to fast. How can I change the speed. You said something about a java console. Do you mean gallery.jar with it?
If yes how can I edit this file. When I open it with the notepad I only see stuff I can't use.
Thanks
Frank1984
09-25-2004, 04:49 PM
Does anybody have any ideas about how to make it work slower? I never work with Java so I have no idea what to do.
Thanks!
ray326
09-25-2004, 05:29 PM
Most slide shows have some parameter that effects how long each image should be displayed so check the docs for that. Otherwise if that one isn't open source then you're out of luck.
Frank1984
09-26-2004, 04:53 AM
Does somebody have a correct Java slideshow code? Also one in which you can set the speed. Thanks!
Khalid Ali
09-26-2004, 09:25 AM
whereever you have gottent his application(applet) from,they shouldhave documentation on it. And setting speed seems to be an essential parameter thaty they would have docs on...
Frank1984
09-26-2004, 11:55 AM
Originally posted by Khalid Ali
whereever you have gottent his application(applet) from, they should have documentation on it. And setting speed seems to be an essential parameter that they would have docs on...
As far as I can see the documentation doesn't say anything about speed:
http://www.devx.com/Java/Article/10265/0/page/2
I think I should change this in the gallery.jar file. But I have no idea how I can edit this file. When I open it with Notepad everything is unreadable.
Does anybody have a solution?
Thanks in advance!
Khalid Ali
09-26-2004, 11:58 AM
you won't be able to edit(at least its not easy task) to edit the *.jar file, that is because *.jar file is a binary file only to be executed.TO make such changes you must have access to the source code..
Frank1984
09-27-2004, 01:36 AM
Originally posted by HaganeNoKokoro
According to the java console
java.lang.ArrayIndexOutOfBoundsException: 53328
at ImageMixer.getNextFrame(ImageMixer.java:125)
at Gallery.run(Gallery.java:87)
at java.lang.Thread.run(Unknown Source)
is why it doesn't work. Without a look at the source, however, there's not a lot I can do.
EDIT: After a little testing, it looks like your applet size must be set to the size of the images, or smaller. Also, When testing with a few small images (under 100X100 pixels) it whipped through transitions so fast you could hardly see them.
Look at what HaganeNoKokoro wrote. I don't know where he got that from but I think one of those variables represent the speed. Does anybody know how I can got to the variables obove?
Thanks!
Frank
HaganeNoKokoro
09-27-2004, 03:22 PM
Here, I found myself a decompiler and altered a couple of things in the source. I have added a parameter "delay" so you can set the number of milliseconds you want it to delay between image transitions. It doesn't seem to work well with the "Wipe" transition anymore (I'm not really sure how well that one ever worked though), but other than that, it's ok.
Here's an updated jar file.
Khalid Ali
09-27-2004, 04:16 PM
Originally posted by HaganeNoKokoro
Here, I found myself a decompiler and altered a couple of things
Here's an updated jar file.
awsome..must be a good quality decompiler..eh.:D
HaganeNoKokoro
09-27-2004, 04:20 PM
It's the best I've found yet (Although I've only seen one other) If you want it, it's at http://members.fortunecity.com/neshkov/dj.html
Khalid Ali
09-27-2004, 04:56 PM
I will certainly be doing some decompilation later this weekend...:D
It will provide me an awsome tool to fool proof(or at least try to fool proof) my code...
ray326
09-27-2004, 08:46 PM
Yea, DJ does a nice job. I've used it to recover versions of code one of our developers didn't seem to ever put back in the repository.
Frank1984
09-28-2004, 03:38 AM
HaganeNoKokoro, thank you very much for your help!