I have a program that consist of a JFrame, and in that JFrame I have three JPanel-components. In one of these JPanels, j1, I'm using GridLayout(1,3). The components of that JPanel consist of two JLabels and one JPanel with the backround color of green. When I'm resizing (by width) the window the only component in j1 that's resizing is the green JPanel. How should I do to resize the JLabels also? Resize so that the text is adjusted by the width of the window.