Andrew said:
Perhaps not to a help-desk (though they might be able
to provide a better answer, cheaper, knowing the
ultimate goal - as opposed to the strategy the questioner
thinks might achieve the goal), but this is a discussion
forum, so it is every bit as relevant and open for
discussion as the original question. OTOH, should
you choose the 'help-desk' in future, don't forget..
Well, normally I do add a "I'm trying to achieve foo", but this really
was a straight forward question and I was trying to spare the
reader/helper from excess un-needed information. To the point and
concise so as to not waste time.
Now that we got this far I may as well say why
. A small app that I'm
writing is to run on a server. It can either be a double-clicked jar, or
it can be invoked from the command-line. Providing the argument "-noui"
on the command-line forces user interaction via the prompt. In graphical
mode there is a single dialog with fields and buttons.
Since many servers may not run a graphical server I wanted to make sure
that in such cases I handle the problem correctly. In such cases the
user obviously won't be double clicking the jar file, so a quick check
of isHeadless() will allow me to force the command-line user-interaction
as though the argument "-noui" was provided.
lol, I'll give you 0% of those and 200% of these
.