I have developed some code that creates radio buttons and adds them to a JScrollPane.. however, each radio button is added to the east (right) of the one that recedes it.
I have tried using Component
which does not seems to work. Also, aligning the next button the north or south also does not work due to there being more than two buttons.
As the screenshot shows my buttons are being added horizontally.. I want them added vertically.