DefaultListModel<String> dlmList =new DefaultListModel<String>();
private void btnGenerateActionPerformed(java.awt.event.ActionEv ent evt) {
Random random = new Random();
int intValue1;
int intValue2;
int intValue3;
int intResult;
intValue1= Integer.parseInt(txtValue1.getText());
intValue2= Integer.parseInt(txtValue2.getText());
intValue3= Integer.parseInt(txtValue3.getText());
intResult = random(intValue1, intValue2, intValue3);
intValue3 = 0;
while (intValue3 < 0)
{
dlmList.addElement(String.valueOf(intResult));
intValue3++;
}
jList1.setModel(dlmList);