create link which returns true or false

i need something that allows the server to send a message to the client asking them if they wish to acept a file. Idealy i would like it to be a link similar to that of msn messenger. but i cant seem to find something similar.. any sugestions as to what i could use would be great
[287 byte] By [helen_166] at [2007-11-26 12:06:11]
# 1
[url http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JOptionPane.html]JOptionPane[/url]
CaptainMorgan08 at 2007-7-7 12:34:27 > top of Java-index,Desktop,Core GUI APIs...
# 2

ive looked intho this option and it seems u required the actionevent listener to perform this task. howeve because im calling another gui there wont be a action event. i need create the pannel without a action click is there a way to do this?

Component source = (Component) actionEvent.getSource();

JOptionPane optionPane = new JOptionPane("Accept file?",

JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);

JDialog dialog = optionPane.createDialog(source,

"File Sent");

dialog.show();

int selection = OptionPaneUtils.getSelection(optionPane);

System.out.println(selection);

Message was edited by:

helen_166

Message was edited by:

helen_166

helen_166 at 2007-7-7 12:34:27 > top of Java-index,Desktop,Core GUI APIs...