src/net/java/sip/communicator/impl/gui/main/chat/conference/InvitationReceivedDialog.java
/**
     * Handles the <tt>ActionEvent</tt> triggered when one user clicks
     * on one of the buttons.
     * @param e the event.
     */
Handles the ActionEvent triggered when one user clicks
on one of the buttons.
@param e the event.
Handles the ActionEvent triggered when one user clicks on one of the buttons . @param e the event .
public void actionPerformed(ActionEvent e)
    {
        JButton button = (JButton)e.getSource();
        if (button.equals(acceptButton))
        {
            if(invitationAdHoc == null)
                GuiActivator.getMUCService().acceptInvitation(invitation);
            else
                try
                {
                    multiUserChatManager.acceptInvitation(
                            invitationAdHoc, multiUserChatAdHocOpSet);
                } catch (OperationFailedException e1)
                {
                    e1.printStackTrace();
                }
        }
        else if (button.equals(rejectButton))
        {
            if(multiUserChatAdHocOpSet == null && invitationAdHoc == null)
                try
                {
                    GuiActivator.getMUCService().rejectInvitation(
                        multiUserChatOpSet, invitation, reasonField.getText());
                }
                catch (OperationFailedException e1)
                {
                    SwingUtilities.invokeLater(new Runnable()
                    {
                        @Override
                        public void run()
                        {
                            MessageDialog md = new MessageDialog(
                                null,
                                "Failed to reject invitation",
                                "Failed to reject the invitation",
                                false);
                            md.setVisible(true);
                        }
                    });
                }
            else
                multiUserChatManager.rejectInvitation(multiUserChatAdHocOpSet,
                        invitationAdHoc, reasonField.getText());
        }
        this.dispose();
    }
public void actionPerformed ( ActionEvent e ) { JButton button = ( JButton ) e . getSource ( ) ; if ( button . equals ( acceptButton ) ) { if ( invitationAdHoc == null ) GuiActivator . getMUCService ( ) . acceptInvitation ( invitation ) ; else try { multiUserChatManager . acceptInvitation ( invitationAdHoc , multiUserChatAdHocOpSet ) ; } catch ( OperationFailedException e1 ) { e1 . printStackTrace ( ) ; } } else if ( button . equals ( rejectButton ) ) { if ( multiUserChatAdHocOpSet == null && invitationAdHoc == null ) try { GuiActivator . getMUCService ( ) . rejectInvitation ( multiUserChatOpSet , invitation , reasonField . getText ( ) ) ; } catch ( OperationFailedException e1 ) { SwingUtilities . invokeLater ( new Runnable ( ) { @ Override public void run ( ) { MessageDialog md = new MessageDialog ( null , "Failed to reject invitation" , "Failed to reject the invitation" , false ) ; md . setVisible ( true ) ; } } ) ; } else multiUserChatManager . rejectInvitation ( multiUserChatAdHocOpSet , invitationAdHoc , reasonField . getText ( ) ) ; } this . dispose ( ) ; }
Handles the <tt>ActionEvent</tt> triggered when one user clicks
 on one of the buttons.
Handles the <tt > ActionEvent< / tt > triggered when one user clicks on one of the buttons .