Swing - problem with GridBagLayout [message #764235] |
Sun, 11 December 2011 13:15  |
Eclipse User |
|
|
|
Hi,
I have installed WindowBuilder on my Eclipse Indigo. And I've noticed a strange thing.
Designer set a border for contentPane with 5 pixel insets (for default):
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
If I choose a GridBagLayout, I will see that grid represents with an addictional displacement (right and down). The objects, however, are placed in a right places. (see the screenshot)

Is it a bug or a feature?
p.s. I'm Russian, sorry for my poor English.
Attachment: eclipse.png
(Size: 8.03KB, Downloaded 1282 times)
[Updated on: Sun, 11 December 2011 16:41] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07007 seconds