Solved

"Colspan" on JTable headers

Posted on 2002-04-10
3
1,584 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Configure a Bean in an XML file 4 49
spring jars download 1 52
Using jdbcTemplate.batchUpdate to improve INSERT performance 6 27
JDBC performance 8 29
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

749 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