Results 1 to 4 of 4
Thread: How to change font of text?
- 06-30-2011, 04:18 AM #1
Member
- Join Date
- May 2011
- Posts
- 97
- Rep Power
- 0
- 06-30-2011, 04:44 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
You should say what the class of document is, and what the paragraph class is. (That's a bad name by the way. It would better be called Paragraph.)
If you are using code from some library or other, say what that is - and consult its documentation!
- 06-30-2011, 05:53 AM #3
Member
- Join Date
- May 2011
- Posts
- 97
- Rep Power
- 0
Hi
it is not in a class i have declared this, but i have done it in a method i.e. at a click of a button, and since i had to prepare document, i named it has "document", anyways i will change it to an appropriate name, but first please let tell me how to display that text in bold?
Regards
Sandeep
- 06-30-2011, 06:01 AM #4
Similar Threads
-
Set Font Color, Font Style & Font Family While Replacing Text
By sherazam in forum Java SoftwareReplies: 0Last Post: 08-18-2010, 10:31 AM -
Change the Font Size and Text Position
By stayfierce in forum New To JavaReplies: 1Last Post: 12-03-2009, 05:17 AM -
How to change font/ font color etc in a graphic object using JCombobox?
By JavaInLove in forum AWT / SwingReplies: 5Last Post: 04-25-2009, 08:00 PM -
How to change The Font
By kader in forum New To JavaReplies: 2Last Post: 09-15-2008, 04:09 AM -
How to use TextAttribute class to change color and font of a text
By Java Tip in forum java.awtReplies: 0Last Post: 06-25-2008, 10:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks