I have tried using windowListener with a dialog but with no luck. I tried a frame instead of a dialog and it worked. Could you tell me what is the problem? Here is my script:
<?xml version="1.0"?>
<j:jelly
xmlns:j="jelly:core"
xmlns:log="jelly:log"
xmlns:define="jelly:define"
xmlns="jelly:swing"> <define:script var="saveChanges">
<j:set var="hasAbout" value="${aboutPageCheckBox.isSelected()}"/>
<log:info>Has About: ${hasAbout}</log:info>
</define:script><dialog var="frame" title="Test" modal="true">
<panel name="General Parameters">
<gridBagLayout>
<gbc gridx="0" gridy="0" anchor="west"><label text="Application Pages:"/></gbc>
<gbc gridx="1" gridy="0" anchor="west"><checkBox text="About page" var="aboutPageCheckBox" selected="false"/></gbc>
<gbc gridx="2" gridy="0" anchor="west"><checkBox text="Help page" selected="true"/></gbc>
<gbc gridx="3" gridy="0" anchor="west"><checkBox text="Search page" selected="false"/></gbc>
</gridBagLayout>
</panel>
<windowListener var="event" closing="${saveChanges}"/>
</dialog>
${frame.pack()}
${frame.show()}
</j:jelly>
Nicolae Cismaru http://www.edulib.ro/~nicu/
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
