Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to clear a JList and JTextArea

843807Apr 18 2003 — edited Apr 21 2003
Hi all,

I'm stuck trying to clear a JList and a JTextArea on my applet. Basically what I want with my applet is it process something when I hit the Run button, and list the result in a JList. If the user selects one of the list in JList, the detail will be shown in a JTextArea. There's a Reset button, which is supposed to reset everything (clear all JTextField, JTextArea and JList). I have no problem with JTextField, but I can't clear any of my JList and JTextArea.

How can I clear the JList & JTextArea?

Thanks,
Inge
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2003
Added on Apr 18 2003
3 comments
344 views