🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #996

Launch a Window closing Event

#996
From: rr
Date: Tue, 17 Aug 2004 21:15
24 lines
1598 bytes
Hi everybody

I'm a newbie at java. I program with Delphi.
I would like to do a Frame Selection, to select e.g: Cars
I have created a Class that extends Frame and implements ActionListener.
What must I do to launch WindowClosing event when I have selected a row 
 from my list.

I have tried
   this_windowClosing(null);
but the frame does not close. I would like to close using the window 
closing event

Perhaps it would be better close the selection without using 
windowClosing, using the mouseClick event and call dispose,wouldn't it?

Which is the better way to show a selection and retrieve the select value?
Thank you in advance.
Ricard


-- 
Missatge escrit amb l'M2, el revolucionari gestor de correu de l'Opera: 
http://www.opera.com/m2/
Technical Details
Message-ID: <opscwanfg7rudah6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2b20761b0c7cf6b9,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.jbuilder.java.swing
Subject: Launch a Window closing Event
From: rr <ricard_gb@hotmail.com>
Organization: q
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Tue, 17 Aug 2004 23:15:05 +0200
Message-ID: <opscwanfg7rudah6@newsgroups.borland.com>
User-Agent: Opera7.23/Win32 M2 build 3227
NNTP-Posting-Host: 62.57.17.138
X-Trace: newsgroups.borland.com 1092777305 62.57.17.138 (17 Aug 2004 14:15:05 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail