I am developing a GUI in Java SWT for use in a 3D particle physics simulator. The current GUI is quite clunky and unattractive, as it consists of multiple windows. I would like to consolidate the GUI into one window with a canvas, however to preserve functionality I must also add composites on top of this canvas. For aesthetic reasons, I would like the composites to be semi-transparent. I have done quite a bit of research, however nothing has worked so far. Is this even feasible using the composite API, and If so, how would I go about implementing it?
我正在开发Java SWT中的GUI,用于3D粒子物理模拟器。当前的GUI非常笨重且没有吸引力,因为它由多个窗口组成。我想将GUI整合到一个带有画布的窗口中,但为了保留功能,我还必须在这个画布上添加复合材料。出于美学原因,我希望复合材料是半透明的。我做了很多研究,但到目前为止还没有任何工作。这甚至可以使用复合API,如果是这样,我将如何实现它?
1 个解决方案
#1
0
It is possible to set the transparency of a Shell - Shell.setAlpha(int).
可以设置Shell的透明度 - Shell.setAlpha(int)。
Are you sure that semi-transparent composites will work if they are static? Isn't the idea to have semi-transparency on a floating window?
你确定半透明复合材料如果是静态的,它们会起作用吗?在浮动窗口上不具有半透明性的想法?
#1
0
It is possible to set the transparency of a Shell - Shell.setAlpha(int).
可以设置Shell的透明度 - Shell.setAlpha(int)。
Are you sure that semi-transparent composites will work if they are static? Isn't the idea to have semi-transparency on a floating window?
你确定半透明复合材料如果是静态的,它们会起作用吗?在浮动窗口上不具有半透明性的想法?