How to Use JScrollPane with Multiple Components in Java?

JScrollPane is one of the most Classy Features of Swings. I Had a really tough time figuring out how to use it with Many JRadioButtons. All I wanted to do was, to create a list of Many Radio Buttons and place them inside a ScrollPane. But, somehow the Scroll Pane wasn’t working. So, after some research on the net, I was able to figure out how to do that.
Continue reading