• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text formating error when using tabs  RSS feed

 
Chandhrasekar Saravanan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I apologise for the unformatted posting i did last time.
I am trying to display text from a file into an scrollpane.
i am modifying the text position such that it is aligned and
does not consume useful scrollpane space. but if i find something
like code experts, i should not change the text position and
i should display as it is in the file.
I am able to do so. but the problem i face is ,it works fine
whenever i use space bar. but if i use tabs, the white spaces are
not displayed. i dont think there is any bug in my code.

It is something like ubb code <code> and </code> in javaranch

The code expert is given below
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the reason why:

Tabs are rendered with 0 width. Convert them into spaces.
Hope that helps.
Raj
[ January 22, 2003: Message edited by: raj madhuram ]
[ January 22, 2003: Message edited by: raj madhuram ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!