Chapter 19 - Code Snippets ========================== P.644, step 5: hiddenNavBar.doAction(JUNavigationBar.BUTTON_COMMIT); --------------------------------------------------------------------------------- p.645, _popupTransactionDialog(); System.exit(0); hiddenNavBar.doAction(JUNavigationBar.BUTTON_INSERT); hiddenNavBar.doAction(JUNavigationBar.BUTTON_DELETE); hiddenNavBar.doAction(JUNavigationBar.BUTTON_FIND); hiddenNavBar.doAction(JUNavigationBar.BUTTON_EXECUTE); hiddenNavBar.doAction(JUNavigationBar.BUTTON_ROLLBACK); JOptionPane.showMessageDialog(this, "Department browse and edit window", "Department Browse", JOptionPane.INFORMATION_MESSAGE); --------------------------------------------------------------------------------- p.649, step 5 if (e.isPopupTrigger()) { mainPopupMenu.show(this, e.getX(), e.getY()); } --------------------------------------------------------------------------------- p. 653, Create Image Icon Objects, step 2 // button icons private ImageIcon imageAdd = new ImageIcon(DepartmentsForm.class.getResource("addnew.gif")); private ImageIcon imageDelete = new ImageIcon(DepartmentsForm.class.getResource("deleterec.gif")); private ImageIcon imageHelp = new ImageIcon(DepartmentsForm.class.getResource("help.gif")); ---------------------------------------------------------------------------------