ceyesuma -4 Posting Pro

Is there a difference when filling JTextField.setText();

nameTemp=t.getNodeName();
JTextField.setText(nameTemp);

and

nameTemp="The text";
JTextField.setText(nameTemp);

The node name will not fill the text field.