Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Header problem

Status
Not open for further replies.

angel0910

Programmer
Jun 26, 2002
17
0
0
SG
I have create a JTable and place the table in JScrollPane and the table's headers appears...
I would like to achieve:
header = 1 column
table = 7 columns

how do i actually "merge" the columns of the header (which have 7 columns, same as the table) to 1 column only?

need help badly..
thanks :)
 
Could you have a JTable with no headers at all, and just format a JLabel above the scroll pane? "When you have eliminated the impossible, whatever remains, however
improbable, must be the truth." ~ Arthur Conan Doyle
 
why didn't i think of tat? :D
thanxs :)

but just want to know is there a function like colspan and rowspan (HTML) in Java too?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top