Fri Nov 07, 2008 12:45 pm
this is the codes we've got...
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
{
if(JOptionPane.showConfirmDialog(container,
"Are you sure you want to leave the conference ?",
"iMessage: Quit Conference",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null) == JOptionPane.YES_OPTION) {
Message mymessage = new Message(CONFERENCE_LEAVE);
mymessage._destination = user.toString();
try {
frame.sendMessageToServer(mymessage);
}
catch(Exception se) {
System.out.println("Error sending message");
}
//setVisible(false);
//frame.removeFrame(user);
}
Fri Nov 07, 2008 12:47 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.