freelanceprogrammers.org Forum Index » Java

"Close Window" Script


View user's profile Post To page top
rpc_w Posted: Sun Feb 24, 2002 9:28 am


Joined: 24 Feb 2002

Posts: 2
"Close Window" Script
I want to write a script that closes a pop up window if the user clicks on the
"Close Window" buttom. Can anyone help?
Reply with quote
Send private message
View user's profile Post To page top
cnik70 Posted: Sun Feb 24, 2002 7:46 pm


Joined: 01 Feb 2002

Posts: 13
"Close Window" Script
this.addWindowListener(new
java.awt.event.WindowAdapter() {<br> public void
windowClosing(java.awt.event.WindowEvent evt) {<br> exitForm(evt);<br> }<br> });
Reply with quote
Send private message
View user's profile Post To page top
dnp7 Posted: Mon Feb 25, 2002 1:59 pm


Joined: 19 Feb 2002

Posts: 22
"Close Window" Script
For window closing you can
use:<br><br>button1.addActionListener(new java.awt.event.ActionListener() {<br>
public void
actionPerformed(ActionEvent e) {<br> dispose();<br> }<br>});<br><br>Good
Luck,<br>Dmitry
Reply with quote
Send private message
View user's profile Post To page top
spooge21 Posted: Mon Feb 25, 2002 10:03 pm


Joined: 14 Feb 2002

Posts: 50
"Close Window" Script
This sounds like a JavaScript question. You should probably post this to a more
appropriate forum in order to have your question answered
properly.<br><br>Sincerely,<br>Anthony Eden
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help