Solved

Fond in text file.

Posted on 2001-06-21
5
225 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
  • 2
  • 2
5 Comments
 

Expert Comment

by:johnbrewer1980
Comment Utility
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
Comment Utility
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
Comment Utility
any URL link for this.
0
 
LVL 9

Accepted Solution

by:
Ovi earned 100 total points
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
return in catch statement 1 40
allStar challenge 1 41
countAbc challenge 9 49
Exception after setting jdbc session management 2 38
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now