This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.