欢迎来到天天文库
浏览记录
ID:38981818
大小:106.51 KB
页数:20页
时间:2019-06-22
《JAVA抽奖系统源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、/*主界面*MainFrame.java**Createdon__DATE__,__TIME__*/packagecom.insigma.frame;importjava.io.BufferedReader;importjava.io.FileInputStream;importjava.io.IOException;importjava.io.InputStreamReader;importjava.net.URLDecoder;importjavax.swing.JDialog;importjavax.swing.JFrame;importjavax.swing.UIM
2、anager;importorg.jvnet.substance.SubstanceLookAndFeel;importorg.jvnet.substance.painter.StandardGradientPainter;importorg.jvnet.substance.theme.SubstanceTerracottaTheme;importcom.insigma.commutil.CardThread;importcom.insigma.commutil.CommUtil;importcom.insigma.commutil.ImageThread;/****@au
3、thor__USER__*/publicclassMainFrameextendsjavax.swing.JDialog{/**CreatesnewformMainFrame*/publicMainFrame(java.awt.Frameparent,booleanmodal){super(parent,modal);initComponents();this.setLocationRelativeTo(null);//居中显示try{UIManager.setLookAndFeel(newSubstanceLookAndFeel());JFrame.setDefaultL
4、ookAndFeelDecorated(true);JDialog.setDefaultLookAndFeelDecorated(true);SubstanceLookAndFeel.setCurrentTheme(newSubstanceTerracottaTheme());//SubstanceLookAndFeel.setSkin(newEmeraldDuskSkin());//SubstanceLookAndFeel.setCurrentButtonShaper(new//ClassicButtonShaper());//SubstanceLookAndFeel.s
5、etCurrentWatermark(new//SubstanceBubblesWatermark());//SubstanceLookAndFeel.setCurrentBorderPainter(new//StandardBorderPainter());//SubstanceLookAndFeel.setCurrentGradientPainter(new//StandardGradientPainter());//水晶蓝//SubstanceLookAndFeel.setCurrentTitlePainter(new//FlatTitlePainter());}ca
6、tch(Exceptione){System.err.println("Somethingwentwrong!");}try{showPerson();}catch(IOExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}publicvoidshowPerson()throwsIOException{Stringfilename=URLDecoder.decode(Class.class.getResource("/com/insigma/config/name.txt").getPath());F
7、ileInputStreamfileInputStream=newFileInputStream(filename);InputStreamReaderinputStreamReader=newInputStreamReader(fileInputStream,"gbk");BufferedReaderbufferedReader=newBufferedReader(inputStreamReader);Stringname="";Stringbufname="";intkey=1;while((name=buff
此文档下载收益归作者所有