This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes creating a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "creating a table" Watch "creating a table" New topic
Author

creating a table

pankaj saxena
Ranch Hand

Joined: Nov 21, 2009
Posts: 46
sir,

My questions are:

1. How can I create a JTable with providing column names and 3 empty rows? I have gone through the API but there is no such clue to create a table with this kind of information. It only provides creating a table by providing data and column names.

2. What should I do, when i want to split one column heading into two portions? Example, there is one column with the name "Period of Service" , which is further subdivided into two sub-headings as: 1. "Period From" and 2. "Period To".

thanks.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
 
Don't get me started about those stupid light bulbs.
 
subject: creating a table
 
Similar Threads
Auto fill in mysql
Runtime Creating Tables
Dynamically redrawing columns in TableViewer
Primary Key contains "#" sign
How do I map two collections of the same Entity in Hibernate?