Java Swing:使对话框部分透明。
我需要使我的对话框部分透明。从谷歌浏览器中拉出一个选项卡来创建一个新窗口,同时拖动它所形成的形状就是我想要形成的形状,减去透视。
关键是我的对话框是一个相当简单且标准的对话框,但我需要将其中的一大块切掉并透明。如果该区域不是对话框的一部分,则双击该区域,因此单击该区域将失去对话框的焦点。
I have a need to make my dialog partially transparent. Pull out a tab from google chrome to create a new window, while dragging the shape it makes is the shape that I want to make, minus see-through.
The point is that my dialog is a fairly simple and standard dialog, but I need one chunk of it cut out and transparent. Double points if that area is not part of the dialog so clicking there will lose focus from the dialog.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置不透明度。
http://java. sun.com/developer/technicalArticles/GUI/translucent_shape_windows/#Setting-the-Opacity-Level-of-a-Window
我明白你的意思通过 chrome 页面选项卡。在这种情况下,您可能必须有一个透明的底层面板,该面板将包含位于顶角的选项卡以及下方页面的其余部分。即 2 个独立的组件
希望这是您正在寻找的
you can set the opacity.
http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/#Setting-the-Opacity-Level-of-a-Window
I see what you mean by chrome page tab. In this case you may have to have an underlying panel which is transparent, this panel would then contain the tab in the top corner, and the rest of the page underneath. ie 2 separate components
hope that is what you very looking for