aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Not sure how to word this question. Best guess: Is combining JCheckBox and JTextArea possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Not sure how to word this question. Best guess: Is combining JCheckBox and JTextArea possible?" Watch "Not sure how to word this question. Best guess: Is combining JCheckBox and JTextArea possible?" New topic
Author

Not sure how to word this question. Best guess: Is combining JCheckBox and JTextArea possible?

Bd Howard
Greenhorn
Ranch Hand

Joined: Mar 30, 2012
Posts: 80
Hi,

I'd like someone to point me in the right direction. I am not sure how to word my question so I can make an accurate search.

In my program, I have it so the user can drop a folder onto a JTextArea (housed inside a JScrollPane) and the contents of that folder (each file name) are listed in the JTA. I want to have a JCheckBox immediately to the left of each name, so the user can select one of the files for special treatment.

I've seen this done in email programs, so the user can select more than one message, but I don't know what this combination of components is called. Could someone shed some light on what I should be searching for in order to implement this?

Thanks,

BD


I've got just enough Java knowledge to royally screw everything up. :-)
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
might be easier to use a JTable/JScrollPane combo.

you can have headers if you want, or not.
you can have gridlines if you want, or not.

even a JList/JScrollPane would be better than a JTextArea.
Bd Howard
Greenhorn
Ranch Hand

Joined: Mar 30, 2012
Posts: 80
Thanks Michael. I've been using JTA lately, and I guess I am in a rut. Never considered using anything else.

Your JTable suggestion has allowed me to get some good hits on my search. Thanks a bunch.

BD
 
jQuery in Action, 2nd edition
 
subject: Not sure how to word this question. Best guess: Is combining JCheckBox and JTextArea possible?