jeremytaffy
Technical User
I created a JPanel named "Row1" that had a flowlayout.
I then created a JScrollPane by using the following command:
JScrollPane scroll1 = new JScrollPane(row1, ....);
I added "scroll1" to the container I'm working on.
The problem is that I have several buttons on row1 that I want to use. However, the buttons keep flowing to the right when "scroll1" is added to the container instead of starting again on a new line when the line is full. Is there any way to set some boundary so that the buttons would flow as usual even if a ScrollPane is added?
Please Let me know. Thanks.
I then created a JScrollPane by using the following command:
JScrollPane scroll1 = new JScrollPane(row1, ....);
I added "scroll1" to the container I'm working on.
The problem is that I have several buttons on row1 that I want to use. However, the buttons keep flowing to the right when "scroll1" is added to the container instead of starting again on a new line when the line is full. Is there any way to set some boundary so that the buttons would flow as usual even if a ScrollPane is added?
Please Let me know. Thanks.