I wanted to know if its possible to change the text of a JTextArea or JTextPanel from another method and if so how?

Recommended Answers

All 2 Replies

I wanted to know if its possible to change the text of a JTextArea or JTextPanel

yes

from another method

yes

and if so how?

well, but there are exists tons of methods that's descibed in API
for exaxmple (with link to API too)

http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html

http://download.oracle.com/javase/tutorial/uiswing/components/textfield.html

http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm

thanks

I wanted to know if its possible to change the text of a JTextArea or JTextPanel

yes

from another method

yes

and if so how?

well, but there are exists tons of methods that's descibed in API
for exaxmple (with link to API too)

http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html

http://download.oracle.com/javase/tutorial/uiswing/components/textfield.html

http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.