[Jsmooth-cvs] jsmooth/skeletons/samplejar/src SampleApplication.java, 1.2, 1.3
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-05-27 09:14:54
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/samplejar/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv14482/skeletons/samplejar/src Modified Files: SampleApplication.java Log Message: splash screen support and small overall refactoring Index: SampleApplication.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/samplejar/src/SampleApplication.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SampleApplication.java 18 May 2007 21:34:00 -0000 1.2 --- SampleApplication.java 27 May 2007 09:14:50 -0000 1.3 *************** *** 78,84 **** } ! String toto = jsmooth.Native.getExecutablePath(); ! ! jLabel1.setText("Sample Application for JSmooth " + toto); jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER); --- 78,88 ---- } ! String jnitest = ""; ! if (jsmooth.Native.isAvailable()) ! { ! jnitest = jsmooth.Native.getExecutablePath(); ! } ! ! jLabel1.setText("Sample Application for JSmooth " + jnitest); jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER); *************** *** 122,128 **** * @param args the command line arguments */ ! public static void main(String args[]) { ! new SampleApplication().setVisible(true); } --- 126,148 ---- * @param args the command line arguments */ ! public static void main(String args[]) throws Exception { ! jsmooth.SplashWindow spw = null; ! ! // throw new Exception("KO"); ! ! if (jsmooth.Native.isAvailable()) ! { ! spw = jsmooth.Native.getSplashWindow(); ! } ! ! if (spw != null) ! for (int i=0; i<=50; i+=2) ! { ! spw.setProgress(i, 50); ! Thread.currentThread().sleep(100); ! } ! ! new SampleApplication().setVisible(true); } |