public static void main(String[] args) throws Exception { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); final JFrame f = new JFrame(); f.setLayout(new BorderLayout()); try { System.out.println(UserManager.instance().login("Scott", "test")); // FinanceManager.instance().getAccountManager().retrieve(); FinanceManager.instance().getJournalManager().createJournal("General Journal"); FinanceManager.instance().getAccountManager().importAccts("TestAccts.xml"); FinanceManager.instance().turnOffInitializationPhase(); JournalEntry je = new JournalEntry("Test", null); Account cash = FinanceManager.instance().getAccountManager().getAccount("Cash"); Account a_r = FinanceManager.instance().getAccountManager().getAccount("Accounts Receivable"); je.addLineItem( new JournalEntryLineItem( cash, new AcctAmount(22, TransactionType.DEBIT), "test", cash.getAllCategories().toArray(new AcctActionCategory[0])[0])); je.addLineItem( new JournalEntryLineItem(a_r, new AcctAmount(22, TransactionType.CREDIT), "test", null)); JournalEntryPanel jep = new JournalEntryPanel(je); f.add(jep); } catch (Exception e) { e.printStackTrace(); UserManager.instance().logout(); } f.pack(); f.setVisible(true); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }