I’m trying to dynamically create 2 FlowLayouts( one of them has about 50 dynamically created buttons, other has about 10) so that there is a slight gap between them. I’m stuck with this, I tried to use BoxLayout and put FlowLayouts in it, and then create gap with Box class and its methods, but it didn’t work. I tried with BorderLayout, and GridBagLayout, but that didn’t work either.
You can see what I’m trying to do on the image below. I would appreciate if anyone has an idea how to do this. The actual question is: How can I create a gap between the first 50 buttons and other 10 buttons, where both groups of buttons have to be set in FlowLayout.