Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

"Colspan" on JTable headers

Posted on 2002-04-10
3
Medium Priority
?
1,608 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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

916 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