Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Make the header of the JTable in Vertical Access

 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Hello for all of u

Anyone use JTable before notice that the column names exist in the horizontal Access on top of JTable.

My problem and business needs is to make the header(Columns) of the JTable to be in the Vertical Axis on the lest of the JTable.

Can anyone help me to solve this problem. And if it's not the right class to use please advice.

Thanks and best regards.

Aabed
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look here
 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

Thanks alot for this great link and help from you. I searched it but I'm still not find my aim.

If you checked all those examples you will find that all JTable Header Columns are exist at the top and my aim is to hide them from the top and show them on the left at the begining of each row.

So if u please advice me.

Thanks alot for help and best regards

Looking forward to hear from u soon.

Aabed
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shows you how to add row headers which is what you want to do. I think removing the vertical headers is probably quite easy. I've never done it but I reckon it's something like JTable.setTableHeader(null).
D.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic