• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

L&F JTable Guidelines

 
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic