jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes Help on Changing font. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help on Changing font." Watch "Help on Changing font." New topic

Help on Changing font.

dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi All

I am working on a swing application ,in which i proceed
as below

1)Get user input into a table in database using sql .
2)now i am writing this data from database to text file.
but while writing this data i want to change the font
of text i tried using

now i am confused on how i should change
font before writing to text file so that in text file i will
get a formatted data from database.

for writing i have used method

how can i overcome this problem ?any idea it will
be of great help.....

Thanks in advance.

Dhwani:>Winning is not important but it is the only thing.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39542
I can't quite make out what you're trying to do. You're retrieving data from a DB, and want to write that data to a file in a specific font size? What kind of format is that file in? Plain text files don't have a font size. And what does Swing have to do with it? Are you displaying the data as well?

Please elaborate on what you're trying to do.
[ April 03, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link: http://aspose.com/file-tools
subject: Help on Changing font.
Similar Threads
Problem while uploading an image using UploadBean
how to embed Asian font while genrating PDF using FOP
Need Help
Printing Database Records to an external printer/paper?
Character encoding to insert TimesPhoneticIPA text into mysql database