Rhino said:
I'd say the answer depends to some extent on what kind of prograqm you are
writing.
Is this an application, applet, midlet, or servlet? If it is a servlet, I
suppose most people would recommend some kind of framework, although I'm not
sure which ones are fashionable at the moment. For applets or midlets, you'd
probably get a different answer than for servlets and I applications might
get you a different answer again.
Same to you from the center (more-or-less) of Canada
See that's the thing. I'm not even sure if I need to write a Java GUI
for this. Basically what I have is an XML file that I use to control
some print functionality (I do Tech Support.. printers are my gig).
The XML file is well formed and I use a Java program to parse it for
specific pieces of information. The problem is that if I use a normal
editor or even Eclipse, there's no guarantee that if changes are made
that they will maintain the wellformedness and this will cause my
process to crash (not good at 2am in the morning). So what I need is
some sort of tool that will let support people maintain this XML file
using Add/Change/Delete functions. It has to check for wellformedness
(I use JDom.. it works) and I also have to be able to copy the file to
one other location (two print servers). I was thinking that I could
just write a ksh script, but that would be really ugly, and since I
have a working knowledge of Java, I figured why not do a practical
application. The problem is that when I took my training, we covered 0
in the area of Swing/AWT. So perhaps Java isn't the ideal language.
Perhaps I could look into using plain HTML with some of the added
features I've learned about. Or even JSP as I've seen some pretty
sophisiticated JSP code recently. I'm thinking I need 4 main
classes... one for the main program and one for each of the functions.
I was hoping that I could use a JButton for each of the
Add/Change/Delete selections and have some JTextAreas that I could use
in the subsequent classes. But when I started looking at some of the
example (Cay Hortmann books that I have) I couldn't find any programs
that have the right combination of containers. I don't want to write
this from scratch. I was hoping to find an example in one of my books
or in some of the docs I have online and go from there... but no dice
so far....bummer too cuz it looks so nice to have a good GUI staring at
you rather than having to do all this by hand.