Just how you add JLabels, JTextFields, JButtons by doing this add(label1); add(button1);
how to remove?
I have a button that will remove a particular JTextField.
The button:
thehandler3 handler3 = new thehandler3();
button3.addActionListener(handler3); // first x button
private class thehandler3 implements ActionListener{
public void actionPerformed(ActionEvent event){
remove(field1);
}}
It is not working. I get no compliation or execution error.