Writing Text

Dear Developers,

Hello

I want to show the information that is in my database in Jtextarea.

I wonder how to show it there.

I have one method in my database that its called show() that select all information that I want ,so just now I want to show it in my Jtextarea using that method.

Can anybody help me?

Message was edited by:

martin_ms1985

[391 byte] By [martin_ms1985a] at [2007-11-26 13:01:52]
# 1
[url http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/text/JTextComponent.html#setText(java.lang.String)]JTextArea.setText()[/url]
CaptainMorgan08a at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 2
jTextArea.setText(theContentOfTheString);theContentOfTheString --> can be from a method which return string
G_Abubakra at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 3
HelloAnybody Knows which event is suitable for that ?
martin_ms1985a at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 4
There are many, consider action listener, on buttons
G_Abubakra at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 5
Actually I just want to show the text there isnt any buttons I have one page that I press one button there when It pressed it will come a new window with a JTextArea in it which I want to write the things there I dont know how to use it?
martin_ms1985a at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 6
have you tried reading the API docs: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextArea.html
Jasprea at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...
# 7
Martin i didn't get you
G_Abubakra at 2007-7-7 17:04:01 > top of Java-index,Java Essentials,Java Programming...