JDK-8162507 : Popup menu in JWS application appears on wrong screen after disconnecting and connecting screen
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u102,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2016-07-25
  • Updated: 2018-10-02
  • Resolved: 2018-08-05
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
In environment with multiple screens after disconnecting screen where application is opened and reconnecting it, menu is opened on wrong screen.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Open web start from : https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/ActionDemoProject/ActionDemo.jnlp
2.Click "Menu"
3.Disconnect main screen ( "Windows + p" for windows)
4.Connect main screen
5Click "Menu" 

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
After step 2. Menu is opened under button
After step 5. Menu should be opened as after step 2.
ACTUAL -
After step 5. Menu is opened in corner of other screen

REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Based upon submitter's response, "Only difference in configuration I see is that I have extended monitor set as main display in window settings and disconnect this extended monitor in step 3 and 4 (using option disconnect projector). Attached screenshot with my result after step 5 (you can see border between screens)." Rechecked the issue with updated settings and could confirm the behavior as visible in the screenshots. Revised Steps to Reproduce: 1. On the Extended Monitor as Main screen, open web start from : https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/ActionDemoProject/ActionDemo.jnlp 2. Click "Menu" 3. Disconnect main screen (Extended Monitor) by using Windows + p 4. Connected main screen (Extended Monitor) back 5. Click "Menu" Application Window and Menu items (when clicked) are divided among two screens.
27-07-2016

Checked this for 8u102 b14 and couldn't confirm the issue as reported. After step 5, menu is always opened as expected that is as in step 2 (Menu is opened under button). See attached screenshot. Rechecking with the submitter about the actual steps followed and result.
26-07-2016