Re: getting rid of text in TextArea



Thomas Fritsch wrote:
"Frances" <fdr58@xxxxxxxxx> wrote:

how do you dynamically get rid of text in a TextArea?

(no way of doing what in JS you would do like this

     textArea.value = "";  ???

thank you..

Frances

There is a method doing exactly what you want. Learn to read the API spec.
Look through http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextArea.html#method_summary
and don't forget the inherited methods (of JTextComponent) just below.


thank you very much, I HAD looked in javadocs.. didn't know could do setText("") and it would get rid of what is already there... thank you..

.



Relevant Pages

  • Re: getting rid of text in TextArea
    ... and don't forget the inherited methods (of JTextComponent) just below. ... Prev by Date: ...
    (comp.lang.java.gui)
  • Re: re-writing code to deal w/depr. stuff, probl decl. class..
    ... Programming requires reading a lot of documentation (including ... Have you considered Frances, that despite your best efforts, you may not be suited to computer programming? ... And I even wouldn't call it a discussion: you brought it up as an *example* what could be found in the JavaDocs. ...
    (comp.lang.java.help)
  • Re: re-writing code to deal w/depr. stuff, probl decl. class..
    ... Have you considered Frances, that despite your best efforts, you may not be suited to computer programming? ... this is on code I didn't write myself, doesn't come with a javadocs (I assume javadocs means "layout" of packages, classes, etc. as in url above.. ... after that post in which you told me to unzip rt.jar to see what was in it I did exaclty that, and don't know how/what else I did, b/c after that my JVM didn't work anymore and I had ...
    (comp.lang.java.help)
  • Re: how to disassembly a .jar file? how to see what are the classes inside the .jar file?
    ... 'in-line w/trim'? ... Try unzipping* it Frances. ... the *latest* JavaDocs, even if you are coding for 1.1. ...
    (comp.lang.java.help)