Fond in text file.

Hi All,
   Is that possible to set the font of the text file to "Bold" type in a text file. please show the coding or URL. thanks.

regards,
waho
wahoAsked:
Who is Participating?
 
OviConnect With a Mentor Commented:
If you have an jdk installed into your system, you have an allready made example to D:\JavaJDK\jdk1.3.0_02\demo\jfc\Stylepad\Stylead.jar (the path is from my computer).
0
 
johnbrewer1980Commented:
If you mean a *.txt file, then no.  .txt is supposed to contain only character information, not formatting information.  You might be better off using a rich text file (.rtf).

If this doesn't solve the problem, please send more info.
0
 
OviCommented:
You can use JTextPane as editor component with an RTFEditorKit installed. The edited and saved file will suport bold,italic, and so on.
0
 
wahoAuthor Commented:
any URL link for this.
0
 
wahoAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.