Results 1 to 3 of 3
Thread: How to make text bold using java
- 07-25-2009, 02:00 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
- 07-26-2009, 03:11 AM #2
raw .txt files do not support bold. So there is no easy way to do it. .rtf (rich text files) do support it, but you must write .rtf xml commands out to a file.
- 07-28-2009, 05:06 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Text files used plain text, you cannot format them. Some of the people confused on this. Open a text file write some text on it and save. Then click on Format->Font, and make text to Bold. Without click save close the text file. System didn't ask to save. But wordpad, MSDoc will do. Text(or plain text) not care of formatting. RTF is the solution for in such cases.
Similar Threads
-
How to make a text field to accept numbers only?
By Robert_85 in forum Advanced JavaReplies: 15Last Post: 04-07-2009, 01:30 PM -
TODO in bold font in Text Editor
By SSG_JJV in forum EclipseReplies: 1Last Post: 03-25-2009, 10:42 PM -
Bold Italic function in Swing
By Java.child in forum AWT / SwingReplies: 2Last Post: 02-19-2009, 03:08 PM -
String Bold
By Xystus777 in forum New To JavaReplies: 4Last Post: 01-20-2009, 06:59 AM -
Make a text in Jlabel down to next Line
By hungleon88 in forum AWT / SwingReplies: 2Last Post: 12-01-2008, 11:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks