Forum Stats

  • 3,826,361 Users
  • 2,260,636 Discussions
  • 7,896,916 Comments

Discussions

Using Appletstub I created AppeltEnvironment and initilized applet but I keep getting Invalid Stream

I have followed below link answer: http://stackoverflow.com/a/16095828/5436880

Scenario: I am replicating Website Applet behavior in my Java program, website is https://carelink.minimed.eu/patient/entry.jsp?bhcp=1. I have .Jar file downloaded for a applet. I added it to my Java Project. Using AppletStub I have passed relevant parameters and called classLoader. I am able to open applet window

But I am getting error as Invalid Stram Header:0A0A0A0A error

     <span class="kwd" style="color: #101094;">public</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">class</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">AppletSnipper</span><span class="pun" style="color: #303336;">{</span><span class="pln" style="color: #303336;"> <br/><br/></span><span class="kwd" style="color: #101094;">public</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">static</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">void</span><span class="pln" style="color: #303336;"> main</span><span class="pun" style="color: #303336;">(</span><span class="typ" style="color: #2b91af;">String</span><span class="pln" style="color: #303336;"> args</span><span class="pun" style="color: #303336;">[])</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">throws</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">InstantiationException</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">IllegalAccessException</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">ClassNotFoundException</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">URISyntaxException</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">IOException</span><span class="pun" style="color: #303336;">{</span><span class="pln" style="color: #303336;"><br/>   </span><span class="com" style="color: #858c93;">//CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));</span><span class="pln" style="color: #303336;"><br/><br/><br/>   </span><span class="typ" style="color: #2b91af;">Connection</span><span class="pun" style="color: #303336;">.</span><span class="typ" style="color: #2b91af;">Response</span><span class="pln" style="color: #303336;"> res </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">Jsoup</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">connect</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;"><span>"</span><a class="jive-link-external-small" href="https://carelink.minimed.eu/patient/j_security_check" rel="nofollow">https://carelink.minimed.eu/patient/j_security_check</a><span>"</span></span><span class="pun" style="color: #303336;">)</span><span class="pln" style="color: #303336;"><br/>   </span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">data</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"j_username"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">"chikhalehero"</span><span class="pun" style="color: #303336;">).</span><span class="pln" style="color: #303336;">data</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"j_password"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">"heroaahe"</span><span class="pun" style="color: #303336;">).</span><span class="pln" style="color: #303336;">method</span><span class="pun" style="color: #303336;">(</span><span class="typ" style="color: #2b91af;">Connection</span><span class="pun" style="color: #303336;">.</span><span class="typ" style="color: #2b91af;">Method</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">POST</span><span class="pun" style="color: #303336;">)</span><span class="pln" style="color: #303336;"><br/>   </span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">execute</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/>   </span><span class="typ" style="color: #2b91af;">Map</span><span class="pun" style="color: #303336;"><</span><span class="typ" style="color: #2b91af;">String</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">String</span><span class="pun" style="color: #303336;">></span><span class="pln" style="color: #303336;"> loginCookies </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> res</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">cookies</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/><br/><br/>   </span><span class="com" style="color: #858c93;">//CookieHandler.setDefault((CookieHandler) loginCookies);</span><span class="pln" style="color: #303336;"><br/>   </span><span class="typ" style="color: #2b91af;">CookieHandler</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">setDefault</span><span class="pun" style="color: #303336;">(</span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">CookieManager</span><span class="pun" style="color: #303336;">());</span><span class="pln" style="color: #303336;"><br/>  URL url</span><span class="pun" style="color: #303336;">[]</span><span class="pln" style="color: #303336;"> </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="pun" style="color: #303336;">{</span><span class="pln" style="color: #303336;"> <br/>   </span><span class="com" style="color: #858c93;">// new File("/ddmsDTWApplet.jar").toURI().toURL()</span><span class="pln" style="color: #303336;"><br/>   </span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> URL</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;"><span>"</span><a class="jive-link-external-small" href="https://carelink.minimed.eu/patient/main/deviceUpload.do/applets/ddmsDTWApplet.jar" rel="nofollow">https://carelink.minimed.eu/patient/main/deviceUpload.do/applets/ddmsDTWApplet.jar</a><span>"</span></span><span class="pun" style="color: #303336;">).</span><span class="pln" style="color: #303336;">toURI</span><span class="pun" style="color: #303336;">().</span><span class="pln" style="color: #303336;">toURL</span><span class="pun" style="color: #303336;">()</span><span class="pln" style="color: #303336;"><br/><br/><br/>   </span><span class="pun" style="color: #303336;">};</span><span class="pln" style="color: #303336;"><br/><br/><br/>   </span><span class="typ" style="color: #2b91af;">AppletEnvironment</span><span class="pln" style="color: #303336;"> appletEnvironment </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">AppletEnvironment</span><span class="pun" style="color: #303336;">(</span><span class="pln" style="color: #303336;">url</span><span class="pun" style="color: #303336;">[</span><span class="lit" style="color: #7d2727;">0</span><span class="pun" style="color: #303336;">]);</span><span class="pln" style="color: #303336;"><br/><br/><br/><br/><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"width"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">"715"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"height"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">"390"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"src"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">""</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"CODE"</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="str" style="color: #7d2727;">"minimed.ddms.applet.dtw.DTWApplet"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"type"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"application/x-java-applet;jpi-version=1.6"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"scriptable"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"true"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"cache_option"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"Plugin"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"cache_archive"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"ddmsDTWApplet.jar"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"archive"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"ddmsDTWApplet.jar"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"mayscript"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"true"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"userName"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"abc"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"password"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"xyz"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"locale"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"en_IN"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"systemVersion"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"7333-8.1.019"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"lastPumpUniqueID"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">""</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"lastMeterUniqueID"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">""</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"lastCGMUniqueID"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">""</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"uploadParadigmLinkMeterOnly"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"false"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"uploadCGM"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"true"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"uploadG3B"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"false"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"ngpUploadBlackList"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"[MMT-1581, MMT-1582, MMT-1780, MMT-1781, MMT-1782]"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"hideNGP"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"N"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"hideCNL"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"N"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"progressbar"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"true"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"boxmessage"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"Loading Device Reader Applet..."</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"troubleshooting"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"Troubleshooting"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"boxbgcolor"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"238,238,238"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>  appletEnvironment</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">put</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"boxfgcolor"</span><span class="pun" style="color: #303336;">,</span><span class="str" style="color: #7d2727;">"black"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>   </span><span class="com" style="color: #858c93;">//Frame frame = new Frame("chikhalehero");</span><span class="pln" style="color: #303336;"><br/><br/><br/>   </span><span class="com" style="color: #858c93;">//DTWApplet appletClass = new DTWApplet();</span><span class="pln" style="color: #303336;"><br/>   </span><span class="typ" style="color: #2b91af;">URLClassLoader</span><span class="pln" style="color: #303336;"> classLoader </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">URLClassLoader</span><span class="pun" style="color: #303336;">(</span><span class="pln" style="color: #303336;">url</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>   </span><span class="typ" style="color: #2b91af;">DTWApplet</span><span class="pln" style="color: #303336;"> appletClass </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="pun" style="color: #303336;">(</span><span class="typ" style="color: #2b91af;">DTWApplet</span><span class="pun" style="color: #303336;">)</span><span class="pln" style="color: #303336;">classLoader</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">loadClass</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"minimed.ddms.applet.dtw.DTWApplet"</span><span class="pun" style="color: #303336;">).</span><span class="pln" style="color: #303336;">newInstance</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/><br/>   </span><span class="com" style="color: #858c93;">//appletClass.start();</span><span class="pln" style="color: #303336;"><br/><br/>   </span><span class="typ" style="color: #2b91af;">JFrame</span><span class="pln" style="color: #303336;"> frame </span><span class="pun" style="color: #303336;">=</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">JFrame</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/>  frame</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">setLayout</span><span class="pun" style="color: #303336;">(</span><span class="kwd" style="color: #101094;">new</span><span class="pln" style="color: #303336;"> </span><span class="typ" style="color: #2b91af;">GridLayout</span><span class="pun" style="color: #303336;">(</span><span class="lit" style="color: #7d2727;">1</span><span class="pun" style="color: #303336;">,</span><span class="pln" style="color: #303336;"> </span><span class="lit" style="color: #7d2727;">1</span><span class="pun" style="color: #303336;">));</span><span class="pln" style="color: #303336;"><br/><br/><br/>  appletClass</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">setName</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"Custom Applet Name"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>   </span><span class="com" style="color: #858c93;">//appletClass.set</span><span class="pln" style="color: #303336;"><br/><br/>  frame</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">getContentPane</span><span class="pun" style="color: #303336;">().</span><span class="pln" style="color: #303336;">add</span><span class="pun" style="color: #303336;">(</span><span class="pln" style="color: #303336;">appletClass</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/><br/>   </span><span class="kwd" style="color: #101094;">if</span><span class="pun" style="color: #303336;">(</span><span class="pln" style="color: #303336;"> appletClass </span><span class="pun" style="color: #303336;">==</span><span class="pln" style="color: #303336;"> </span><span class="kwd" style="color: #101094;">null</span><span class="pln" style="color: #303336;"> </span><span class="pun" style="color: #303336;">)</span><span class="pln" style="color: #303336;">   </span><span class="typ" style="color: #2b91af;">System</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">out</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">println</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"Not intialiyed."</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>   </span><span class="com" style="color: #858c93;">//else appletClass.init();</span><span class="pln" style="color: #303336;"><br/>   </span><span class="com" style="color: #858c93;">//appletClass.start();</span><span class="pln" style="color: #303336;"><br/><br/><br/><br/>  appletClass</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">setStub</span><span class="pun" style="color: #303336;">(</span><span class="pln" style="color: #303336;">appletEnvironment</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/><br/><br/>  appletClass</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">init</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/>  appletClass</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">start</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/><br/>  frame</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">pack</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/>  frame</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">isResizable</span><span class="pun" style="color: #303336;">();</span><span class="pln" style="color: #303336;"><br/>  frame</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">setVisible</span><span class="pun" style="color: #303336;">(</span><span class="kwd" style="color: #101094;">true</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/>   </span><span class="typ" style="color: #2b91af;">System</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">out</span><span class="pun" style="color: #303336;">.</span><span class="pln" style="color: #303336;">println</span><span class="pun" style="color: #303336;">(</span><span class="str" style="color: #7d2727;">"I have pressed Sync"</span><span class="pun" style="color: #303336;">);</span><span class="pln" style="color: #303336;"><br/><br/><br/><br/></span><span class="pun" style="color: #303336;">}</span>

Tagged:
This discussion has been closed.