@Override public void actionPerformed(ActionEvent e) { Dialogs.RequestStatusPanel panel = new Dialogs.RequestStatusPanel(); Dialogs.InputDialog<RequestStatus> dialog = new Dialogs.InputDialog<RequestStatus>("ReceiveStatus - Parameters", panel); dialog.setVisible(true); RequestStatus status = dialog.getResult(); if (status != null) { getControllerService().receiveStatus(Lists.newArrayList(status)); log.info("Called Controller.receiveStatus() successfully..."); } }
@Override public void actionPerformed(ActionEvent e) { Dialogs.MessagePanel panel = new Dialogs.MessagePanel(); Dialogs.InputDialog<Message> dialog = new Dialogs.InputDialog<Message>("Receive - Parameters", panel); dialog.setVisible(true); Message message = dialog.getResult(); if (message != null) { getControllerService().receive(Lists.newArrayList(message)); log.info("Called Controller.receive() successfully..."); } }