🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

OnSelChanging equivalent

#11268
From: Chris Vinson
Date: Wed, 23 Jun 1999 00:00
20 lines
1253 bytes
There is an event that I'm looking for in the swing world that is
equivalent to the OnSetAcive() / OnKillActive() and TVN_SELCHANGING
events in Windows/MFC.

When a user changes a tab in a JTabbedPane, I want to validate some data
before letting the tab change takes place.
If the validation fails, I want to display a message box and not change
tabs.

When a user changes a selection in a JTree, I want to validate some data
before letting the selection change takes place.
If the validation fails, I want to display a message box and not change
selection.

I've listed two swing controls here as examples, but I trust there is a
generic solution for all swing components.
Any information will be appreciated,

Chris Vinson
VinsonCL@pebio.com
Technical Details
Message-ID: <3771791D.CCCC91EC@pebio.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,93371642ade28bb2,start
X-Google-Attributes: gid111d45,public
From: Chris Vinson <spamvinsoncl@pebio.com>
Subject: OnSelChanging equivalent
Date: 1999/06/23
Message-ID: <3771791D.CCCC91EC@pebio.com>
X-Deja-AN: 493155851
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing