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