Solved

Fond in text file.

Posted on 2001-06-21
5
248 Views
Last Modified: 2012-06-27
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
Comment
Question by:waho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:johnbrewer1980
ID: 6217351
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
 
LVL 9

Expert Comment

by:Ovi
ID: 6217487
You can use JTextPane as editor component with an RTFEditorKit installed. The edited and saved file will suport bold,italic, and so on.
0
 

Author Comment

by:waho
ID: 6217706
any URL link for this.
0
 
LVL 9

Accepted Solution

by:
Ovi earned 100 total points
ID: 6217722
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
 

Author Comment

by:waho
ID: 6225812
Thanks.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question