How can I dynamically add components to jpanel? I have an add button, when I click the button, the components must be added to JPanel.
my question is that adding a text box and a button to jpanel, when I click the add button, the user can click the add button any number of times according to what I have to add them to jpanel. I added to scrollerpane in jpanel and the jpanel layout manager is set to null.
source
share