how to add margin in panel?

Hello all,

I am trying to add margin at the panel at runtime. I have searched a lot for this but was unable to get any hint or answer.
Specifically as I want to add this margin at runtime after user input so, I can’t use external css to add margin to panel.

You can always put dynamically a class name to a Component with Component#addStyleName(String) and have those css selectors in your theme.

Did you try to put padding to v-panel and then adjust negative margin for the panel caption if you have one.