Displaying text in GUI

hey can someone please explain to me how I can display text in a GUI panel? I have a method which, when run, displays some values. How can I run this method in the panel?Thanks
[190 byte] By [hornetsfan16a] at [2007-11-27 5:27:52]
# 1
How do you want to display the values? Label, TextField, TextArea? Which ever you need to use the appropriate method to set the text you want displayed.
floundera at 2007-7-12 14:49:46 > top of Java-index,Java Essentials,New To Java...
# 2
I want to be able to display the text so that the user cannot change the text.....is it possible to use JTextArea to display the text and make it so that the user cannot change the text thats displayed
hornetsfan16a at 2007-7-12 14:49:46 > top of Java-index,Java Essentials,New To Java...
# 3
U can. JTextArea newText = new JTextArea();newText.editable(false);That will do the trick.
-...icedT...-a at 2007-7-12 14:49:46 > top of Java-index,Java Essentials,New To Java...
# 4
thanks mate =D
hornetsfan16a at 2007-7-12 14:49:46 > top of Java-index,Java Essentials,New To Java...