Re: Creating a simple visual user interface
On Aug 9, 3:56 am, Danger_Duck <ganggang3s...@gmail.com> wrote:
Right now, I have a program that you run off command prompt by typing:
java progName arg0, arg1, .....
like many homemade programs out there. Fine and terrific for me, but
not for the average joe who doesn't know how to access a file
directory....
...
I also use eclipse, but creating an entire view/plugin takes up a lot
more space/time than I want for simple programs.
'Simple' for who? You, the developer, or (your average)
'Joe' the end user?
The sad fact is that it is usually a lot easier(/simpler)
to write a program that does what it needs to do when
given a very restricted and precise set of inputs, but
coming up with that precise list is not easy for YAJ.
If you want to make is easy for YAJ, you will probably
need to throw in a JFileChooser for getting a (e.g. image)
file to work with, a JColorChooser to select that slightly
bluish shade of green the user wants as the BG flood fill
color, a JComboBox to set the tolerance of the fill..
OTOH, there are numerous advantages to writing classes
that can be used both ways. For example, if the class is
to be used by a 'headless' machine to programatically
change images, like a server, or if it makes any sense
to have another program churn out a file with 1000
invocations on the simple code using different parameters,
or for use with another GUId desktop application that
can already specify the exact parameters to use.
--
Andrew Thompson
http://pscode.org/