Article View: borland.public.jbuilder.java.swing
Article #7906Glass Pane for Painting Only
From: Erik Berry
Date: Sun, 26 Nov 2000 00:00
Date: Sun, 26 Nov 2000 00:00
25 lines
1374 bytes
1374 bytes
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:
<MPG.148b80bd71a8fb0e98976a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e5d1c5cbe4b0e0b7,start X-Google-Attributes: gid111d45,public From: Erik Berry <eb@techie.ZZZcom> Subject: Glass Pane for Painting Only Date: 2000/11/26 Message-ID: <MPG.148b80bd71a8fb0e98976a@newsgroups.borland.com> X-Deja-AN: 698077039 X-Trace: 26 Nov 2000 18:21:46 -0800, 128.252.22.62 Newsgroups: borland.public.jbuilder.java.swing