[Linux-programlama] java Serializable - PageFormat

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Ali Dereli (derelinux@gmail.com)
Date: Tue 18 Oct 2005 - 16:16:13 EEST


Merhaba;
 PageFormat tutan bir sýnýfý serilestirmek istedigimde
java.io.NotSerializableException: java.awt.print.PageFormat
hatasýný alýyorum.
Googleda aradým bir tane link cýktý oda almanca.
 kodu kýsaca yazýyým:
sýnýf:
 class yedek implements Serializable {
PageFormat pageFormat=null;
public yedek (PageFormat pageFormat){
this.pageFormat=pageFormat;
}
}
 dosyanýn yazýldýgý kod parcacýgý
 PrinterJob pj = PrinterJob.getPrinterJob();
yedek y=new yedek(pj.pageDialog(pageFormat));
try{
FileOutputStream fos=new FileOutputStream("print.ali");
ObjectOutputStream oos=new ObjectOutputStream(fos);
oos.writeObject(y);
fos.close();
}
catch(Exception ex){
System.out.println("hata " + ex);
}
 sizce nerde ne yapmam gerekli.
 tesekkurler.

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.