Java: accessing object created elsewhere

Three questions related to each other here. I’ve tried looking for answer, but I’m unable to find/apply possible existing answers to my problem. Consider the following class: import java.util….

Container not displaying in JScrollPane

I have a JScrollPane that will fill up with buttons added by the user. Currently, the user creates a new button and it is added to the container that is inside the scroll pane but nothing is displayed….