🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Glass Pane for Painting Only

#7911
From: David Jefferson
Date: Mon, 27 Nov 2000 00:00
32 lines
1802 bytes
The easiest way to do this is to use the JLayeredPane. Replacing the glass
pane can cause problems with lightweight popups.

Dave

"Erik Berry" <eb@techie.ZZZcom> wrote in message
news:MPG.148b80bd71a8fb0e98976a@newsgroups.borland.com...
>   I need any one of the following things, but none seem to be
> easy/possible:
>
>   Can I install a completely "passive" glass pane such that it is
> notified of mouse events, but still passes them onto the lower pane?  It
> should also pass on getCursor() calls, etc.  Manually deciding where to
> pass mouse events is very complex - even the Sun example doesn't do it
> correctly.
>
>   Or, is there an "automated" function to determine what would have been
> the destination component for a mouse event given the mouse event
> delivered to the glass pane (findComponentAt isn't good enough because
> of dragging, menus, exited, etc.)?
>
>   Or, is there a way other than a glass pane to paint on top of swing
> components?
>
>   Or, as a last resort, how can I get the current mouse cursor position
> in a non-mouse event method?
>
>   I've looked in two books and all over the usenet search engines, and
> I'm not finding any help on this issue.
>
> Thanks,
> Erik
Technical Details
Message-ID: <3a2246bf$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.148b80bd71a8fb0e98976a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e5d1c5cbe4b0e0b7
X-Google-Attributes: gid111d45,public
From: "David Jefferson" <david.jefferson@kbcfp.com>
Subject: Re: Glass Pane for Painting Only
Date: 2000/11/27
Message-ID: <3a2246bf$1_2@dnews>
X-Deja-AN: 698200734
References: <MPG.148b80bd71a8fb0e98976a@newsgroups.borland.com>
X-Trace: 27 Nov 2000 03:34:23 -0800, 194.203.209.252
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700