//M em oria l
ja v ai m po r t j av a、a wt、*;i mport j av a
e v ent
*;impor t ja va、a wt、i m a ge
B uff e redI m age;im p ort jav a
*;i mpo rt ja va、ut i l、*;im p o rt j a vax
image i o
Im a geIO;imp o r t ja va x、swing
*;pu b li c cl ass M emoria l e x t e n d s JF rame impl em ents A ct io n Li st en e r{/**ﻩ * @pa ram ar g s */p riv ate J L ab e l ti tl e,pic t u r e,m ark,jl 1,jl2,j l 3,j l 4;pri v ate J TextFie l d jt 1,j t 2,j t 3;ﻩﻩpri va te JBut t o n Ok ,Cancle;p r iv a te st at ic S tring name1 =n u l l;privat e st a t ic S tr ing p ass1 = nul l;ﻩ// 构造函数ﻩp ublic Memo rial(){ﻩtit l e = ne w JL ab el("我得备忘录”);pi ct u r e = ne w JLabel(n e w I ma geIco n(”ph o t o s/3
jpg"));//背景标签ﻩ/*ma r k = n e w JLa b el(new ImageIcon(”3
j p g”)); */ﻩj l 1 =new J La b el( "登录名:");jl2 =n e