public static void populateBitcoinDetails(BitcoinDetails details) { if (details != null) { JTable jtable = MainPage.getAccountTable(); jtable.getModel().setValueAt(details.getBalance(), jtable.getSelectedRow(), 1); System.out.println("jTextField1" + jTextField1); jTextField1.setText(details.getBalance()); jTextField2.setText(details.getAccount()); jTextField5.setText(details.getAddress()); serverID = details.getServerID(); jTextField3.setText(String.valueOf(details.getCurrentBlockNumber())); } }
public static void setBalance(String balance) { jTextField1.setText(balance); JTable jtable = MainPage.getAccountTable(); jtable.getModel().setValueAt(balance, jtable.getSelectedRow(), 1); }