I cant seem to get this statement to work during run time.
textWords.setText(item);
textWords is an object, setText is a method and item is an integer.
Anyone familiar with this? I cannot seem to get this to work during runtime.
There is no error, during runtime it just doesn't do anything!
public class frmMain extends javax.swing.JFrame { public frmMain() { initComponents(); textWords.append("Bryan"); // THIS works!! but this only //happens when the form is initialized, not very usefull } //Other pre generated code here.
private void displayItem() { //Method I created to help me catch data // and make a call to this form. // none of these are working. txtTest.setText(item);
textWords.setText(item);
textWords.insert("Bryan",1);
textWords.append("number");
}