Actually I suppose you'd probably use an about box in an application.
And a certain key combination if it was a command line program.
Just off the top of my head. I don't see the point, personally.
I used it in an applet. The applet wasn't big enough to have an about box,
I was only allowed a height of 26 pixels. I had a bunch of slightly
different versions I was testing and would sometimes lose track of which
version I uploaded to the webserver, (especially if I got distracted by MSN
or something). So I just put a system.out... statement in the init()
function and then invoked the java console when I ran it. I later put a
tool tip in the applet that contained the version number. I couldn't be
sure that the highest version number in development was always the current
one on the webpage because I was trying different things and I didn't want
to accidently trash the currently working version that was uploaded, (
people get so upset !!! when all they see is a blank applet window, lol )
I know CVS is popular with PHP, C++, and anything UNIX / LINUX etc.
programming, but haven't seen too much about it with Java. I'm sure the
benefit would be worth the effort to find a version that would work with
java files -- Sun must use some form of CVS when creating Java.
What is the canonical way to format version history, i.e. the version
numbers, release dates and changes. How do you embed this is the
comments?
The java source code files that come with JDK are a great example of
internal code documentation.