How to add components dynamically?
I created a GUI using Netbeans with some JLabels and some JTextFields on a JPanel. Now I need to put a button to add another JTextField, for example, when the users click on it. I've seen that NetBeans created a GroupLayout and added the static components. I tried to do something like this
but it doesn't work.
Message was edited by: carloshiga