*/
private void btnInputAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInputAddActionPerformed
if (lstTestCases.getSelectedIndex() != -1)
{
TestCase tc = (TestCase) lstTestCases.getSelectedValue();
String input = "zzzz";
do // Error Check to make sure a value is entered
{
if ((input != null) && (input.equals("zzzz")))
{
input = JOptionPane.showInputDialog(null,
"Enter input for Test Case", "Enter Input",
JOptionPane.QUESTION_MESSAGE);
} else // This is an error time through
{
input = JOptionPane.showInputDialog(null,
"ERROR: Enter valid input for test case",
"ERROR: Enter Input",
JOptionPane.ERROR_MESSAGE);
}
} while ((input == null) || (input.equals("")));
tc.addInput(input);
modInputList.add(input);
if (modInputList.getSize() > 0)
{
btnInputRemove.setEnabled(true);
}