🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Detecting secondary component selection

#9045
From: James Cook
Date: Wed, 07 Jun 2000 00:00
16 lines
1477 bytes
Whoa! Fancy subject.

I would like to implement context sensitive help on my Java screens, the way it is sometimes done in Windows. They allow the user to
click on a button (this I can do), the cursor changes (got it covered), then the user clicks on a field, label, text, combo,
whatever (don't know how), and a popup explains the feature (know how).
I am unsure if can I detect a click on a field, without invoking that field?

See if this makes sense. When the user clicks on my "help" button, I instantiate and place a glass pane on the form. The next click
the user makes on the form is detected by the glass pane. Using some built-in function to Frames (or Panels?), I ask for the
component located at the mouse coordinates. After the click, the glass pane is removed.

Is this the best approach? Does it even work? Are there methods to support it? GlassPane or LayeredPane? Will the underlying
components be notified?

thanks,
jim
Technical Details
Message-ID: <8hltut$5uf7@bornews.borland.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,b3d2c88f0fc7000b,start
X-Google-Attributes: gid111d45,public
From: "James Cook" <jimcook.remove.for.spam@iname.com>
Subject: Detecting secondary component selection
Date: 2000/06/07
Message-ID: <8hltut$5uf7@bornews.borland.com>
X-Deja-AN: 632232808
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing