File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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