• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

L&F JTable Guidelines

 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
About two months ago I stumbled across some Look and Feel Guidelines for JTable. It had info about how data in the table should be aligned. I've since tried to find that but can't find anything in the Look and Feel Guidlines about alignment of data in tables. There is info about tables but not the stuff I found before. Does anybody know where that info about alignment is? Many thanks.
With Respect,
Matt
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the data in a table is aligned based on it's type. I guess String are left aligned, Ints are right aligned and so on. You can easily change that default setting. I thought that I have had the link bookmarked for the page that describes it but I can't find it now. There is some information here but I am sure You have looked it already.
http://web2.java.sun.com/docs/books/tutorial/uiswing/components/table.html
Vladan
 
Douglas Kent
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This raises a question about the amount of beautification of the table data. Have you formatted the dollar amounts to include dollar signs, and commas? What about the duration info being expanded to "minutes",etc?
Just wanted to get a feel for what others are doing here...
 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't touched the data at all and have no plans to do so. There's nothing about it in the spec for me, so I'm not going to. There are a million things that I'm worried about as time to submit draws nigh, but that one doesn't bother me. Hope that
helps.
With Respect,
Matt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic