how can i add components dynamically in a jpanel? I am having add button when i click the button the components should be added to the JPanel.
my question is that ad
Just as you always do, except that you have to call:
panel.revalidate();
when you are done, since the container is already realized.