> I only ever expect to instantiate one of the main classes in this
> program.
>
> Is it better practice to create static arrays in the main class and
> have the dialogs/frames access or manipulate the array?
Even after three years of intensive Java programming I
sometimes run into this question: "hey, this class will
in a certain program only ever be instantiated once, so
why not make everything static."
I could not yet come up with a conclusive argument, except
that about half of the time I later realize that the
main class, after a bit of brushing up, could be
used as just a building block in another application.
Then typically some configuration parameters are added,
which go more naturally with a constructor than with
some init method to initialize the static stuff.
In the end I figured that it does not harm but may help
to build proper objects.
Harald.