是否可以将内部程序使用的所有 JFrame 放入 JInternalFrames 并将它们放置在 JDesktopPane 中?
目标是让用户选择一个 java 程序,然后我的程序打开一个 JInternalFrame
,其中包含一个 JEditorPane
作为控制台,并放置所说的 JInternalFrame
JDeskopPane
中的 code>。是否可以将用户程序可能打开的所有 Window
更改为 JInternalFrame
并将它们也放置在所述 JDesktopPane
中?
(来自 IDE 样式程序运行的个人问题)
The goal is to have the user select a java program, then my program opens up a JInternalFrame
with a JEditorPane
inside it as the console and places said JInternalFrame
in a JDeskopPane
. Is it possible to change all the Window
s the user's program may open into JInternalFrame
s and place them in said JDesktopPane
, as well?
(individual question from IDE-Style program running)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我非常确定,如果不篡改您正在启动的程序的二进制文件,这是不可能做到的。如果目标程序执行类似于 new Window().show() 的操作,那么您几乎不可能“挂钩”系统并告诉它将其交换为 JInternalFrame< /代码>。
我的意思是,如果程序是为了显示顶级窗口而编写和编译的,那么您几乎无法改变它。系统中没有“挂钩”,您可以用它说“将所有未来的
Window
放入此JInternalFrame
中。I'm quite sure that this would not be possible to do without tampering with the binaries of the program that you're launching. If the target program performs something like
new Window().show()
, you'll have little possibilities to "hook into" the system, and tell it to swap it for aJInternalFrame
.What I'm saying is that if the program is written and compiled to show a top-level window, there is little you could do to change that. There is no "hook" into the system, with which you can say "put all future
Window
s into thisJInternalFrame
.