× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 getting
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 program.

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

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.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.