Well, I looked all over the Internet and just couldn't find the answer to this question, so maybe someone can give some insight.
I am working on a relatively simple Java application that will replace the Word document currently used for system access requests. It is designed to enter a form of new information about hiring an employee - name, necessary access, etc.
So here is my problem. Trying to make a GUI with all text fields and everything is surprisingly painful. Since each widget is slightly different, getting input after filling out the form seems to require a separate link for each widget, so I can name them individually. This means that each panel for a section has 6-10 different private fields. (I tried adding all the similar widgets to the list and calling them in a loop, but this does not seem to work.)
It looks like the web form is somewhat better suited for this, but I don't have the infrastructure available for this. Has anyone out there found a better solution than this for something like that? This is just a ton of code. Please see the idea below (I added some comments, not the actual code, because it took so long). Thanks for watching!
private JComboBox my_dates;
private JTextField my_date1;
private JTextField my_date2;
private JTextField my_request_date;
private JTextField my_new_legal_name;
private JTextField my_new_pref_name;
private JTextField my_new_username;
private JTextField my_prev_legal_name;
private JTextField my_prev_pref_name;
private JTextField my_prev_username;
private JTextField my_emp_id;
private JTextField my_manager;
private JTextField my_auth_requestor;
private JTextField my_auth_phone;
public NameChangePanel(FormSection the_section)
{
super();
initialize();
buildPanel(the_section.getFields());
}
private void initialize()
{
}
private void buildPanel(List the_fields)
{
}
public List getFormValues()
{
return values;
}
}