Object ´ÜÀ§·Î ó¸®Çϸé....


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :³²Áظð 1999³â 12¿ù 04ÀÏ 13:36:13

In Reply to: ±×·¡ÇÈÀ̹ÌÁö¸¦ ÀúÀåÇÏ°í ºÒ·¯¿Ã¼ö ÀÖ´Â ¹æ¹ýÀº ¸ñ¼û°É·ÈÀ½ posted by È£Áø on 1999³â 12¿ù 01ÀÏ 22:17:11:

¸¸¾à DrawÇÑ Container°¡ Canvas¶ó¸é
ÀÌ CanvasÀÚü¸¦ ÀúÀåÇÏ¸é µÉ°Ì´Ï´Ù.


Canvas c = new Canvas // c¶ó´Â CanvasÀνºÆ®°¡ ÀÖÀ¸¸é


ÀúÀå :


FileOutptuStream fout = new FileOutputStream("draw.ser");
ObjectOutputStream oout=new ObjectOutputStream(fout)
oout.writeObject(c);


Àϱâ

FileInputStream fin = new FileInputStream("draw.ser");
ObjectInputStream oin=new ObjectInputStream(fin)
Canvas c2=(Canvas)o.readObject();
Frame f = new Frame();
f.setSize(300,300);
f.add(c2);
f.setVisiable(true);


´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]