creat a variable panels
i have a probleme if someone can help me
i have an application that i calculate distances between images , but these images need panels to display, but a variable number of panels,
so how to creat a variable number of jpanel
we give x= 5 panels
You can create JPanels in a loop such as a for loop, just you can create most other objects. The problem you may be having (I'm guessing) is what to do with them once you've made them. Perhaps you want to put them in another JPanel that uses GridLayout that is held by a JScrollPane -- but really that's nothing more than a SWAG, and probably the best you'll get from us until we know more of the details of your problem.
Originally Posted by djaber007
My suggestion for you is to tell us these important details if you still need our help.
Best of luck.