Solved

Fond in text file.

Posted on 2001-06-21
5
241 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

740 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