Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

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
0
waho
Asked:
waho
  • 2
  • 2
1 Solution
 
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
 
OviCommented:
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
 
wahoAuthor Commented:
Thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now