Summary: | JPopupMenu never receives focus | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | kevin miles <kj_miles> | ||||
Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | gordon.hirsch, steve_northover | ||||
Version: | 3.2.1 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
kevin miles
2007-01-18 14:51:34 EST
Kevin, sorry for butting in, but the problem here might be the fact that the example code is not setting up a proper Swing root pane container inside the frame. Swing event handling does not work very well if you don't do this. I'll attach a revised version of your code that creates a quick and dirty root pane and which does not have the focus problem, at least not for me. For details, take a look at bug 154973. That bug has a proposed article for eclipse.org that talks about this issue and many other steps necessary to get reasonably behaved embedded swing components. Created attachment 69183 [details]
Revised example source with root pane
Gordon, Great work and thanks for the input. I've dnlded the most recent doc and have read through it several times. :) This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |