• Post Reply Bookmark Topic Watch Topic
  • New Topic

Making string bold  RSS feed

 
Arunav Dash
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
Is there any utility method or some way by which I can make a string bold . My requirement is like while persisting a string object in the data base I should make it bold .
Please help me .

With Regards
Arunabh Dash
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Why is there such a requirement? Surely the bolding of a string is a UI concern....
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you have a grave misunderstanding of the differences between raw text data (in ASCII, UTF-8 or 16 etc. encoding), file formats (like RTF, DOC, PDF) and UI renderers which display that data formatted in the manner intended. The first, which is what you'll be storing in the database, is just bytes of data with no inherent presentation. Apply a known or custom format and you'll have a chance of marking which characters should be bold/italic/whatever. Create a renderer to display that data and you're finally done.

I think it's back to the design stage for the moment until you have those concepts clear... Databases know nothing about how the data they contain should be displayed
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!