JScrollPane component not scrolling objects inside JPanel
I am trying to place a number of JLabel and JTextField objects inside a JPanel which has a JScrollPane.
One thing is, that at one time, I have have a certain number of JLabel and JTextField objects which number would cover an area greater than the JPanel's vertical size.
How when I implement the JScrollPane and I run the program, the scroll bars appear, but they don't scroll the pane inside the JPanel, the items are fixed.
Could the problem be because I am using a Null Layout.
Will I have to use one of the standard layouts available, like GridLayout for the JScrollPane scrolling function to work?
Re: JScrollPane component not scrolling objects inside JPanel
Never mind, I figure it out.
It was the setLayout(null);
I needed to use a LayoutManager layout to be able to scroll.
I am using GridLayout.