May 10, 2009, 12:40 PM
How to add padding inside of Panel with BorderLayout?
I have the following:
ViewPort
FitLayout
Panel
BorderLayout
I want the Panel to have 10px of padding inside so that the BorderLayout doesn't sit flush with the panel edges. But it seems like the BorderStyle of the Panel does not affect the BorderLayout. For example, if I use: BorderStyle="padding: 10px", the BorderLayout is still flush with the Panel. Any help on this would be appreciated.
ViewPort
FitLayout
Panel
BorderLayout
I want the Panel to have 10px of padding inside so that the BorderLayout doesn't sit flush with the panel edges. But it seems like the BorderStyle of the Panel does not affect the BorderLayout. For example, if I use: BorderStyle="padding: 10px", the BorderLayout is still flush with the Panel. Any help on this would be appreciated.