Michael Dunn wrote:you change the constructor so you can pass the data when TxMgt is created //public TxMgt() { to String userName public TxMgt(String un) { userName = un; and in Login.java //TxMgt tx = new TxMgt(); to TxMgt tx = new TxMgt(jTextField1.getText());