java - GroupLayout margins/paddings are auto generated? -


I am using a grouplayout for managing 3 jpanels below which is a screenshot that likes it (me Full screenshots can not be found for privacy reasons). The green border is the main panel, which is connected to it. There are three black borders with three components, each with different components. As you can see, the grouplayout creates a padding (about 20px), automatically it is only on the right hand and the left hand limit is fine. I have tried setAutoCreateContainerGaps (incorrect) and setAutoCreateGaps (wrong) and anything seems to work. Also, as the maximum size of the main panel, the group layout The maximum layout size (main pinal) has been returned from 642px, 540px, but the longest of those three panels is only 630px (clearly set) of panels. Why does it add those extra pixels? Only on the right side? How can I get rid of this padding / space?

Enter image details here

< I think I have found this. I tried to set the main pinlet. The expected size () and grouplayout started that respect. Div>

Comments