Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: James Rivera   on Nov 14 In Java Category.

  
Question Answered By: Jermaine Powell   on Nov 14

i'm new to java and i m trying do a simple program using netbeans.
but the line jTextField2.setText(vArray[0]); dont execute.

what i can do to run?

thanks..

private void click(java.awt.event.MouseEvent evt)
{
// TODO add your handling code here:

jTextField3.setText(funcaoDivideString("text1.text2.text3"));
}


public String funcaoDivideString(String vParametro)
{

String[] vArray = null;

vArray = vParametro.split(".");

jTextField1.setText("value");
jTextField2.setText(vArray[0]);

return vParametro;
}

Share: