JDK-6862117 : JPopup is not visible when invoked on AWTButton
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Incomplete
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-07-20
  • Updated: 2022-09-05
  • Resolved: 2022-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Description
I have a frame which contains Panel. Panel contains AWT Button & a TextArea added to north & south of the Panel.  When i right click on the middel of the AWT Button, the Jpopup is not seen. I pressed left arrow button & pressed the enter button. I see that action event is triggered which indicates the JPopopMenu is hidden behind the awt Button & Panel. But when i right click on the right edge of the AWT Button , the JPopup is seen. 

Step to reproduced :
----------------------
1) Run the attached program.
2) Right click on the middle of the button. Observe that Jpopup is not seen.
3) Press Left arrow button & press enter key. Observe that events are triggered , see the console.   If you see the same behaviour the bug is reproduced.
4) Right click on right bottom of the AWT Button & observe that JPopup is seen.


I this happens on  Solaris. It works fine in window xp.  I tested from jdk7 b47  to jdk7 b66 pit build.

Comments
No testcase
05-09-2022

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

EVALUATION The problem has the same nature as CR 6778882 does. The show() method of the javax.swing.JPopupMenu class calls the setLocation() method but there is no corresponding call to validate()/revalidate() later. As a result, the hierarchy of the components is invalid and the mixing code doesn't calculate shapes.
21-07-2009