Java Applets: The Adventure Continues
Posted 12-30-2009 at 09:46 PM by CoderMan
Java applet programming is actually turning out to be a pretty good experience so far. I've already figured out the (very) basics of how to paint objects on the screen and how to handle mouse click events, and that pretty much covers the essence of all the future interface programming I am going to do for this work project. Except, I still need to figure out how to make GET/POST requests... If I find out that you can't do that in Java Applets I'm probably going to shoot myself.
Things I like so far:
Some oddities:
Things I like so far:
- Can test code in applet viewer instead of the browser. Major coolness factor!
- Java "interfaces" is a pretty nifty idea. Wish it was available in C++. (Or is it?)
- MUCH better working with graphics and mouse clicks in an applet than with HTML/JavaScript.
- Generally familiar C++ style syntax.
Some oddities:
- Enforced exception handling: Why does Java force you to catch exceptions if it doesn't force you to do anything with them?
- The mystical Null Pointer Exception... I wish the Java console would tell you not only that you have one, but why you have one. Adds an unwelcome element of mystery to the code.
- I've had a lot of trouble with online Java tutorials... they always seem to be too complex for my needs. Wasn't able to get anything done until somebody loaned me an old Java reference book written back in the Java 1.2 days.
Total Comments 0