does any body have any idea about the best way that I can do the following.
I am designing a GUI which consists of multiple(not known how many) JPanels. The layout of each JPanel is FlowLayout and is figured as a combination of a JCheckBox and a JEditorPane. These JPanels are generated one at a time. suppose that each time as an answer to an event one JPanel is created. I added all of them to a Box and then I added the Box to another JPanel and then Finally these JPanels should be displayed in a JScrollPane.
my problem is on the last part. I can't add the Jpanel which consists of all the JPanels to JScrollaPane.
I used paneScrollPane = new JScrollPane(spanel); but it doesn't work