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!
# 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