--- old/src/java.desktop/windows/native/libawt/windows/awt_Window.h 2017-09-21 15:24:14.000000000 +0530 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Window.h 2017-09-21 15:24:14.000000000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -245,6 +245,7 @@ static void _SetFullScreenExclusiveModeState(void* param); static void _GetNativeWindowSize(void* param); static void _WindowDPIChange(void* param); + static void _OverrideHandle(void *param); inline static BOOL IsResizing() { return sm_resizing; @@ -260,6 +261,9 @@ static void FocusedWindowChanged(HWND from, HWND to); + inline HWND GetOverridenHWnd() { return m_overridenHwnd; } + inline void OverrideHWnd(HWND hwnd) { m_overridenHwnd = hwnd; } + private: static int ms_instanceCounter; static HHOOK ms_hCBTFilter; @@ -311,6 +315,9 @@ // The tooltip that appears when hovering the icon HWND securityTooltipWindow; + //Allows substitute parent window with JavaFX stage to make it below a dialog + HWND m_overridenHwnd; + UINT warningWindowWidth; UINT warningWindowHeight; void InitSecurityWarningSize(JNIEnv *env);