commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cismaru Nicolae" <cism...@hotmail.com>
Subject Jelly :: windowListener in dialog
Date Fri, 15 Aug 2003 16:53:20 GMT
Hello,

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


Mime
View raw message