I share that curiosity. When I first used BoxLayout, I was thrown off by having that parameter in its constructor. It seems redundant.
But perhaps its as you said before. Instead of the component...
Type: Posts; User: snowguy13
I share that curiosity. When I first used BoxLayout, I was thrown off by having that parameter in its constructor. It seems redundant.
But perhaps its as you said before. Instead of the component...
@helloworld922
Okay, that explains a lot. Thank you! :D
Hmm... But that brings another question to my mind: why does this problem only occur with BoxLayout, and not GridLayout, GridBagLayout,...
Weeeell, never mind. I got it to work, simply by changing...
gameModePanel = new JPanel(new BoxLayout(gameModePanel, BoxLayout.PAGE_AXIS));
...to...
gameModePanel = new JPanel();...
I'm trying to lay out some radio buttons using BoxLayout, which aligns Components right next to each other vertically or horizontally. In other words, it makes them nice and neat. However, I'm...