import javax.swing.JOptionPane;//this line should be at top //of the java package
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
String[] nm =new String[5];
for(int i=0;i<=4;i++)
{
nm[i]=JOptionPane.showInputDialog(this,"Enter name "+i,"Students detail",1);
}
for(int j=0;j<=4;j++)
{ jTextArea1.append("\n"+nm[j]);
}
// TODO add your handling code here:
}
OpinionPINKY PARBA July 11, 2011 at 8:52 PM
IT'S VERY HELPFULL....
javakireeti October 6, 2011 at 1:17 PM
what is the use of 1 at the end of the argument list of showInputdialog ?
this function is coolraveendra January 23, 2013 at 3:56 PM
`no comments plz
JAVA using NETBEANSPRAKASH RANJAN BANERJEE August 8, 2012 at 9:19 AM
import javax.swing.JOptionPane;//this line should be at top //of the java package private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { String[] nm =new String[5]; for(int i=0;i<=4;i++) { nm[i]=JOptionPane.showInputDialog(this,"Enter name "+i,"Students detail",1); } for(int j=0;j<=4;j++) { jTextArea1.append("\n"+nm[j]); } // TODO add your handling code here: }
Post your Comment