PDA

View Full Version : Adding buttons to fieldset



alawi
2 Sep 2008, 11:34 PM
Hello guys,

The following two lines of code do not work.

FieldSet fsTest = new FieldSet("You can't pass the heading in the constrcutor");
fsTest.add(new Button("This button does not show"));

The first line is merely an API improvement, the second line is essential and I don't know why it does not work.

Any insights on this?

Regards,
Alawi

gslender
3 Sep 2008, 2:34 AM
what kind of layout do you have on the fieldset when adding a button?

alawi
3 Sep 2008, 6:17 PM
formlayout, but still not showing..

Alawi,

gslender
3 Sep 2008, 6:45 PM
you can only add widgets that extend field to a formlayout

adapterfiled will allow you to add a button, but it will also come with a label