Hello. I am trying to create a question/answer form using JTextAreas. However, I have a bug where three JTextAreas appear. Also, I could not find a way to simply replace the text in a JTextField, so I created a new JTextArea and removed the old one. What am I doing wrong in my code?
Your code doesn't compile mainly because your class name "Card" doesn't match the constructor name, "LearningCard". This may be a simple oversight by you, but makes our figuring out what's wrong a bit more difficult.
I am also curious why you are adding and removing text components such as JTextAreas rather than just changing the contents of JTextAreas that remain.