tags:

views:

166

answers:

2

Hi I have created a text field in java and i am able to get the data from text field and store in a .txt file. But My problem is that let the my data in textfield is in bold and italic format and the font colour is red. Now I want to store the data exactly in the same format in .txt file. I donot know how to write code for that.

Anyone please help me to solve this type of problem

Thanks Sunil Kumar Sahoo

+2  A: 

It would be easier to see the code you've got so far. Also it would be a bit more motivating to complete your snippet.

Anyway:

Using bold or italic in a textfield is implies that you use html in swing

How to read/write files plese check Java I/O tutorial

stacker