i am creating a text editor using java swings concept
this is the code i am using to save a file
jfr.setTitle(fname.getName());
FileOutputStream fop=new FileOutputStream(fname);
fop.write(jta.getText().getBytes());
fop.flush();
fop.close();
where fname is the name given in save file chooser bye the user
jta is the text pane in which the text to be saved...
my problem is that it is saving the text but not the font style,color,etc...
how to do it .. i am stuck here,please help me...