Making BoxLayout move components to top while stacking left to right?

Well, the setAlignmentY method has no effect here, since it acts on the panel considered as a component.

Riduidel is correct about setting setAlignmentY on the GameSelectionPanel itself, and GridBagLayout is an excellent alternative. If you prefer to stick with BoxLayout, the article Fixing Alignment Problems discusses the matter, suggesting "all the components controlled by a left-to-right Boxlayout should generally have the same Y alignment." In your example, add.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions