如何设置JInternalFrame最小化标题背景?

发布于 2024-08-20 21:34:33 字数 115 浏览 5 评论 0原文

我可以使用InternalFrame.activeTitleBackground和InternalFrame.inactiveTitleBackground设置最大化时的标题栏背景,但是当内部框架最小化时如何设置它?

I can set the title bar background when maximised using InternalFrame.activeTitleBackground and InternalFrame.inactiveTitleBackground but how do I set it when the internal frame is minimised?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暖伴 2024-08-27 21:34:33

没有简单的解决方案。框架颜色是 UI 的一部分,因此您需要创建一个自定义 UI 来执行您想要的操作。您可以首先搜索 Java 源代码来查看“activeTitleBackground”和“inactiveTitleBackground”属性的使用位置。这将使您了解需要自定义的类和方法。

There is no easy solution. The frame colors are part of the UI, so you will need to create a custom UI to do what you want. You can start by searching the Java source code to see where the "activeTitleBackground" and "inactiveTitleBackground" properties are used. That will give you an idea of the class and method that needs to be customized.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文