Set all components from JFrame to actual window size

I am using NetBeans. How can I make all the components from my window resize to the actual size of the window? Now that my window is 800x600 and I am making it larger, the size of all components is the same. I want to resize my components when resizing an open application window.

I tried to find the answer on the Internet, but I could not find a good answer to my problem.

0
source share
1 answer

I tried to find the answer on the Internet, but I could not find a good answer to my problem.

It's hard for me to believe.

Almost every other question on the forums is laying components. The standard answer is to use the Layout Manager. Read the section in the Swing tutorial on Using Layout Managers for more information. We cannot provide specific information because we cannot imagine what your graphical interface looks like.

+2
source

All Articles