I have a query from java a web services in c #, where I search all the data of a given id of a table and return it by means of a string to jtextfield, but I would like instead of showing the whole string in a single jtextfield will show me the data separately.
I tried it with the following code, but when pressing the button nothing happens and it does not mark me any errors.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
int id=Integer.parseInt(jTextField1.getText());
String cadena=consultaAlumno(id);
String[] parts = cadena.split("-");
String jTextField2=parts[0];
String jTextField3=parts[1];
String jTextField4=parts[2];
String jTextField5=parts[3];
String jComboBox1=parts[4];
}