我遇到了JInternalFrame实施问题.我已经做了JInternalFrame未修饰,所以标题栏和边框JInternalFrame被删除.在以下方案中会出现此问题.
在Windows 7计算机中执行该程序.
JInternalFrame遗体未修饰.从另一台计算机使用远程桌面共享访问Windows 7计算机.
此问题仅在Windows 7计算机中出现,而不在Windows XP中出现.您可以使用其他Windows 7计算机或Windows XP计算机上的远程桌面共享来访问Windows 7计算机.
此外,如果您首先使用远程桌面共享访问计算机,然后执行该程序,则JInternalFrame保留未修饰.
重现步骤
步骤1:在Windows 7计算机中执行应用程序.
步骤2:使用来自其他Windows 7或Windows XP计算机的远程桌面共享访问Windows 7计算机.
第3步:检查应用程序的GUI
结果: - 未标记的标题栏和边框JInternalFrame变为可见.
如果有人遇到过这个问题,或者有人为此问题找到解决方案,请分享您的想法.
下面给出了一个示例代码,您可以使用它来重现此问题.
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - …Run Code Online (Sandbox Code Playgroud)