Is it possible to make a Java SWT composite with an alpha value?
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?
It is possible to set the transparency of a 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?
精彩评论