help with updating source
Hello All,
There is a really neat LED ticker tape java applet I used to use on my website. Well, I've recently decided to resurrect it, only to discover that it doesn't work anymore. Compiling the source with the "-deprecation" option revealed that it implements a few deprecated methods.
Since I'm entirely new to java, I was wondering if someone could help me update the source so it can be compiled to run on the current JRE.
The source can be located at:
http://www.littletechshoppe.com/cgi/library/Java/TickerTape/intro.html
Any help is greatly appreciated.
Thanks,
The Chief
[632 byte] By [
thechiefa] at [2007-10-2 16:57:21]

Deprecated is not cause for it to not work.
Hi Chief, I don't think anyone here is going to download, change and give you a new and working applet.
You could:
- pay someone to do this for you (go to a site like: http://www.rentacoder.com);
- or learn Java yourself, then start with some tutorials: http://java.sun.com/docs/books/tutorial/ and if you get stuck a long the line, post a specific question here.
Good luck.
haha... after reading this, I decided to look at the .class files.And, sure enough, they have today's date... looks like the source compiled afterall.
And, wouldn't you know it... when I uploaded them to my server, the applet worked fine.
I feel a bit sheepish. Thanks for the heads-up.
The Chief
> haha... after reading this, I decided to look at the
> .class files.And, sure enough, they have today's
> date... looks like the source compiled afterall.
>
> And, wouldn't you know it... when I uploaded them to
> my server, the applet worked fine.
>
> I feel a bit sheepish. Thanks for the heads-up.
>
> The Chief
Yes. Deprecation is a warning. It means that a method and/or class you are using may one day be removed from Java. So you may want to address that.
But warnings do not halt compilation. Errors do.
> Yes. Deprecation is a warning. It means that a method
> and/or class you are using may one day be removed
> from Java. So you may want to address that.
Uh, really? I thought that deprecated methods were unreliable methods, that might cause bugs. But if what you are saying is really true, then I can use them (untill the day when they will be removed).
But, sorry for doubting what you are saying. Have a look at Thread.stop() method, for example:
Deprecated. This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
In the API documentation of this method, it is clearly described that this method is unsafe, and it will not simply be removed one day in the future.
Well, or maybe I simply didn't understand very well what you are saying.
> Well, or maybe I simply didn't understand very well
> what you are saying.
Well... you aren't wrong. There is a reason a method is deprecated. Usually because it has been replaced with something better or was just a dangerous idea all round in the first place.
I would bet that the deprecation the user is seeing is related to changes in the event model. These sorts of changes aren't really dangerous it's more that there is a new and better way which one should investigate.
It may be deprecated because it is unreliable yes but that isn't what depreated means. Deprecated means there is a better choice available.