Clicking on a text and displaying its components

Hi, I'm new here, and I'm a newbie in Java coding lol so I don't really know my way around

What good code can do the following?

Click on a Button -> Generates a Text in textArea -> Click on the line of the generated text in the textArea -> Displays components of the text (from textArea) in a textBox

Thank you!

[339 byte] By [Drake_Millera] at [2007-11-27 11:14:49]
# 1

This is a step by step problem and wont be solved in just 3-10 lines of code.

You need to read the Swing tutorial on how to use components and how to use listener classes.

Read here: http://java.sun.com/docs/books/tutorial/uiswing/components/button.html

And here: http://java.sun.com/docs/books/tutorial/uiswing/events/index.html

When you are done reading and can create a simple listener to attach to your button, then you'll have completed step one. Then post back here with your code (simplified but compilable) for more help.

ICE

icewalker2ga at 2007-7-29 14:09:14 > top of Java-index,Desktop,Core GUI APIs...