tags:

views:

332

answers:

1

I'm creating a login form with some labels, text inputs, and a button. I put them in a Group, but I don't want to have the border of the group displayed. Is there any way to remove/hide it?

Should I be using other Composite than Group?

+3  A: 

I don't think you can create a Group without a border. However, you could use the base Composite class to group your widgets without a border. Here's an example of using a Composite.

If your login form consists of its own Shell (i.e. window), then you could potentially layout your widgets in the Shell without using a Composite within the Shell.

bporter
I don't recommend placing widgets directly in a shell (without an enclosing Composite). I've had some very strange layout issues with that sort of setup. Now, those may be bugs that they have since fixed (this dates back to 3.0 and earlier), but I prefer not to take chances.
Daniel Spiewak