#How to make gaps more consistent in MigLayout?

3 messages · Page 1 of 1 (latest)

nova sierra
#

Hi, so I'm trying to create a little GUI and I have a few rows of JComponents and want to set consistent gaps between them. Before changing the font of the labels, there was no problem, but after changing the fonts, the gaps aren't as consistent. What should I do?

This is how I set my layout and gaps.

JPanel selectionContainer = new JPanel(new MigLayout("gapy 10"));
lilac irisBOT
#

This post has been reserved for your question.

Hey @nova sierra! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.