This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Create a table with JTextArea in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Create a table with JTextArea in Swing" Watch "Create a table with JTextArea in Swing" New topic
Author

Create a table with JTextArea in Swing

Kofi Nimako
Greenhorn

Joined: Jul 19, 2004
Posts: 6
Hi All:

Does anyone know how to create a table of rows and columns and input text and numbers using JtextArea in Swing ?

Thanks :roll:
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
Hi Kofi,

I don't see how you'd do that with JTextArea. Take a look at JTable instead maybe.


SCJP 1.4, www.gsi3d.org.uk
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Look on the Sun website for the JTable tutorial (you can also access it from the API.) You can use a JTextArea in a JTable. Compare it in the tutorial to the example they have using a JComboBox.

Cheers,
Rachel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create a table with JTextArea in Swing