/    Sign up×
Community /Pin to ProfileBookmark

Why isn’t it working?

Does anybody know why this doesn’t work?

[url]http://www.voordeligewebsites.com/animatedjpg/indexjava.htm[/url]

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

to post a comment
Java

15 Comments(s)

Copy linkTweet thisAlerts:
@HaganeNoKokoroSep 24.2004 — 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.
Copy linkTweet thisAlerts:
@Frank1984authorSep 24.2004 — [i]Originally posted by HaganeNoKokoro [/i]

[B]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. [/B][/QUOTE]



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
Copy linkTweet thisAlerts:
@Frank1984authorSep 25.2004 — 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!
Copy linkTweet thisAlerts:
@ray326Sep 25.2004 — 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.
Copy linkTweet thisAlerts:
@Frank1984authorSep 26.2004 — Does somebody have a correct Java slideshow code? Also one in which you can set the speed. Thanks!
Copy linkTweet thisAlerts:
@Khalid_AliSep 26.2004 — 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...
Copy linkTweet thisAlerts:
@Frank1984authorSep 26.2004 — [i]Originally posted by Khalid Ali [/i]

[B]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... [/B][/QUOTE]


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!
Copy linkTweet thisAlerts:
@Khalid_AliSep 26.2004 — 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..
Copy linkTweet thisAlerts:
@Frank1984authorSep 27.2004 — [i]Originally posted by HaganeNoKokoro [/i]

[B]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. [/B][/QUOTE]



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
Copy linkTweet thisAlerts:
@HaganeNoKokoroSep 27.2004 — 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.

[upl-file uuid=682c6099-37a1-4a8b-bca9-ded80f7eecc4 size=17kB]gallery.zip[/upl-file]
Copy linkTweet thisAlerts:
@Khalid_AliSep 27.2004 — [i]Originally posted by HaganeNoKokoro [/i]

[B]Here, I found myself a decompiler and altered a couple of things

Here's an updated jar file. [/B]
[/QUOTE]


awsome..must be a good quality decompiler..eh.?
Copy linkTweet thisAlerts:
@HaganeNoKokoroSep 27.2004 — 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
Copy linkTweet thisAlerts:
@Khalid_AliSep 27.2004 — I will certainly be doing some decompilation later this weekend...?

It will provide me an awsome tool to fool proof(or at least try to fool proof) my code...
Copy linkTweet thisAlerts:
@ray326Sep 28.2004 — 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.
Copy linkTweet thisAlerts:
@Frank1984authorSep 28.2004 — HaganeNoKokoro, thank you very much for your help!
×

Success!

Help @Frank1984 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...