Package menu

Examples of menu.ComposeNewMessage


          if(subject.getText().split(":")[1].equals(""))
            subjectText=NO_SUBJECT;
          else
            subjectText=subject.getText().split(":")[1];

        new ComposeNewMessage(REPLY_TO+" "+senderName ,
            userName,
            senderName,
            subjectText,
            messageContent.getText());
        //TODO
      }

    });

    this.transferMessage=new JButton(TRANSFER_MESSAGE);
    this.transferMessage.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae){
        String subjectText;
        if(subject.getText().split(":")[1].equals(""))
          subjectText=NO_SUBJECT;
        else
          subjectText=subject.getText().split(":")[1];
        new ComposeNewMessage(TRANSFER_TO,
            userName,
            subjectText,
            messageContent.getText());
        //TODO
      }

    });

    this.replyToAll=new JButton(REPLY_TO_ALL);
    this.replyToAll.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae){
        String subjectText;
        if(subject.getText().split(":")[1].equals(""))
          subjectText=NO_SUBJECT;
        else
          subjectText=subject.getText().split(":")[1];
       
        new ComposeNewMessage(REPLY_TO_ALL,
            userName,
            "All users",
            subjectText,
            messageContent.getText());
        //TODO
View Full Code Here

TOP

Related Classes of menu.ComposeNewMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.