Thanks to all. This is kind of what I was thinking I was going to have to
do. I guess I was just hoping there was an easy way to throw a GUI over an
existing application.

We support customers that have various software packages some with a GUI
already, some don't have that yet.

I will definitely be experimenting with the JDBC and the data queues.

I'm still learning a lot with Java. I'm more of an RPG programmer, but I'm
really starting to like Java the more I use it. I do need to do some reading
on how you save the state of your connection with a GUI between different
entry type of screens. I've done this with a ConnectionBean with JavaServer
Pages before, but I don't know whether it's the same or not with Swing.

There's a lot to learn and thanks to this group it makes it just that much

James R. Perkins

On Feb 11, 2008 9:20 AM, Thorbjørn Ravn Andersen <thunderaxiom@xxxxxxxxx>

James Perkins skrev den 11-02-2008 17:48:
Hello All,
I have a question that some what pertains to this thread. I myself am
learning Swing in order to make a nice GUI front end.

So, here is my question. How are you validating screen entries and
data to the screen? Do you have to write your own program to control
this? I
would like to be able to throw a GUI over an already existing RPG

You should separate the GUI from the data structure holding the accepted

You load the data structure from e.g. a data record or a JDBC rowset.
When you need to edit set each field in the GUI with the appropriate
data from the data structure, and when the user accepts with Ok you run
a validation on the fields to see if they are acceptable. If not you
flag as appropriate, and do not accept the Ok. If ok, then you set the
fields in the data structure from the GUI fields and go from there.

Do not let the GUI fields edit your data structure directly - eventually
that will give you trouble.

This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page