private void rejectRequest(FileTransferRequest request) { try { request.reject(); } catch ( SmackException.NotConnectedException | InterruptedException ex ) { Log.warning( "Unable to reject the request.", ex); } setBackground(new Color(239, 245, 250)); acceptButton.setVisible(false); declineButton.setVisible(false); fileLabel.setText(""); titleLabel.setText(Res.getString("message.file.transfer.canceled")); titleLabel.setForeground(new Color(65, 139, 179)); invalidate(); validate(); repaint(); }
request.reject();