Solved

"Colspan" on JTable headers

Posted on 2002-04-10
3
1,589 Views
Last Modified: 2010-05-18
Hi,

Using a JTable is it possible to emulate the following with major table headers spaning over several columns?

(might help to copy to a fixed width font to see the design layout)
+---------------+---------------+---------------+
| May           | June          | July          |
+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 |
+---+---+---+---+---+---+---+---+---+---+---+---+
|   |   |   |   |   | x |   |   | x |   |   | x |
+---+---+---+---+---+---+---+---+---+---+---+---+
|   | x | x | x |   |   | x |   |   | x |   |   |
+---+---+---+---+---+---+---+---+---+---+---+---+

Cheers,

Mal
0
Comment
Question by:malcx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 6930869
0
 
LVL 3

Author Comment

by:malcx
ID: 6944221
Cheers -  a great link,
sorry for the delay
Mal
0
 
LVL 92

Expert Comment

by:objects
ID: 6944303
No worries :-)

http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 266
Problem to Alipay 10 96
Java class and jar 3 61
junit initializtion error 2 22
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question