public void actionPerformed(ActionEvent evt) { // Get button clicked JButton buttonClicked = (JButton) evt.getSource(); String actionCommand = new String(buttonClicked.getActionCommand()); if (actionCommand.equals("Submit")) { System.out.println(clientUser.getLogon() + ": updating ticket..."); // Recover ticket and update it Ticket ticketToUpdate = ticket; ticketToUpdate.setDesc(clientTicketDialog.getSummaryDescriptionField()); ticketToUpdate.setResolution(clientTicketDialog.getResolutionDescriptionField()); // Call checkInTicket() on the RMI object to update the ticket on the server try { ticketServerObject.checkInTicket(ticketToUpdate); // Refresh the activeTickets HashMap owner.getActiveTickets(); } catch (RemoteException re) { System.out.println(re.getMessage()); } // Close the ClientTicketDialog clientTicketDialog.setVisible(false); clientTicketDialog.dispose(); } }