Вопрос

I am using border layout in my frame and I have used different panels in various regions of the border layout. But when I maximize my frame the components scatter all over the place and the panels are ousted from the frame. Which property should I be manipulating to prevent this?

Это было полезно?

Решение

You can use Absolute Positioning by making setLayout(null). Check this link for example. If problem persists try using GridBagLayout or open-source MiG Layout.MiG Layout is helpful in designing complex UI.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top