I tested your code and changed setbounds to setPreferredsize and it worked. I changed your color to black to make it easier to see over the white on white.
package testing;
import...
Type: Posts; User: mesatrin1
I tested your code and changed setbounds to setPreferredsize and it worked. I changed your color to black to make it easier to see over the white on white.
package testing;
import...
Try this. I did not actually test this but I think this is your problem. Add the panel to the viewport of the scroll pane.
JPanel panel;
JScrollPane scrollPane;
//this...