This week's book giveaway is in the Android forum.
We're giving away four copies of Learning Java by Building Android Games and have Jean-Marcel Belmont on-line!
See this thread for details.
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

L&F JTable Guidelines  RSS feed

 
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
 
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
 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!