{"id":3700,"date":"2013-08-14T05:52:45","date_gmt":"2013-08-13T19:52:45","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3700"},"modified":"2013-08-14T05:52:45","modified_gmt":"2013-08-13T19:52:45","slug":"more-java-applet-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/more-java-applet-tutorial\/","title":{"rendered":"More Java Applet Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/RubyOnRails\/XCode\/DesktopApp\/MyTutorial.html\"><img decoding=\"async\" style=\"float: left; border: 15px solid pink;\" alt=\"More Java Applet Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/RubyOnRails\/XCode\/DesktopApp\/RubyDesktopApplication-18of.jpg\" title=\"More Java Applet Tutorial\"   \/><\/a><p class=\"wp-caption-text\">More Java Applet Tutorial<\/p><\/div>\n<p>Java Applets<\/p>\n<p>Have you ever made one?<\/p>\n<p>What is it?<\/p>\n<p>Well &#8230; according to Wikipedia &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Java_applet' title='Wikipedia regarding Java Applets'>http:\/\/en.wikipedia.org\/wiki\/Java_applet<\/a>  &#8230;<\/p>\n<blockquote><p>A Java applet is an applet delivered to users in the form of Java bytecode.  Java applets can be part of a web page and executed by the Java Virtual Machine (JVM) in a process separate from the web browser, or run in Sun&#8217;s AppletViewer, a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language in 1995,  and are written in programming languages that compile to Java bytecode, usually in Java, but also in other languages such as Jython,[8] JRuby,[9] or Eiffel (via SmartEiffel).[10]<\/p><\/blockquote>\n<p>Our tutorial here builds on <a title='Java Applet Primer Tutorial' href='#japt'>Java Applet Primer Tutorial<\/a> shown below.<\/p>\n<p>And here is some downloadable programming Java Applet source code you should rename to <a target=_blank title='MyTutorial.java' href='http:\/\/www.rjmprogramming.com.au\/RubyOnRails\/XCode\/DesktopApp\/MyTutorial.java_GETME'>MyTutorial.java<\/a> as you require.<\/p>\n<p>For this tutorial I liked the advice of <em>Java Made Simple<\/em> by <em>Peter K McBride<\/em> (Made Simple Books).<\/p>\n<p>In this tutorial we simulate a large part of the tutorial <a target=_blank title='Xcode Ruby Desktop Application Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1997'>Xcode Ruby Desktop Application Primer Tutorial<\/a> and add some quite unusual sound effects not due to being any kind of hit, because I am too far away from any of you to hit?!   So enjoy the live action <a target=_blank title='Ruby tutorial' href='http:\/\/www.rjmprogramming.com.au\/RubyOnRails\/XCode\/DesktopApp\/MyTutorial.html'>tutorial<\/a>.<\/p>\n<p>Link to Java Applet more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Java_applet' title='Link to Java Applet more information'>via Wikipedia, from where quote above came<\/a>.<br \/>\nLink to Java &#8220;spiritual home&#8221; &#8230; <a target=_blank href='http:\/\/www.oracle.com\/technetwork\/java\/index.html' title='Why, Where, and How JavaFX Makes Sense ... CaptainCasa moved from Swing to JavaFX for front-end infrastructure, explaining that implementing an employee desktop front end with native technology is a valid approach and that JavaFX is a good fit. '>via Oracle and Sun, includes talk about (the recent) Java, and about download options<\/a>.<br \/>\nLink to Java Applet game &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Poker.html' title='Example of use of Java Applet'>Draw Poker game<\/a> &#8230; some of personal programming experience.<br \/>\nAnother slightly more obscure link &#8230; hope too much Applet development doesn&#8217;t result in &#8230; <a target=_blank title='OMG!' href='https:\/\/www.youtube.com\/watch?v=ZwFoJOgumBk'>OMG!<\/a>\n<\/p>\n<hr \/>\n<p id='japt'>Previous <a target=_blank title='Java Applet Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=772'>Java Applet Primer Tutorial<\/a> below &#8230;<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/AppletExample\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Java Applet Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Java\/AppletExample\/JavaApplet_03of.jpg\" title=\"Java Applet Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Java Applet Primer Tutorial<\/p><\/div>\n<p>Java Applets<\/p>\n<p>Have you ever made one?<\/p>\n<p>What is it?<\/p>\n<p>Well &#8230; according to Wikipedia &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Java_applet' title='Wikipedia regarding Java Applets'>http:\/\/en.wikipedia.org\/wiki\/Java_applet<\/a>  &#8230;<\/p>\n<blockquote><p>A Java applet is an applet delivered to users in the form of Java bytecode.  Java applets can be part of a web page and executed by the Java Virtual Machine (JVM) in a process separate from the web browser, or run in Sun&#8217;s AppletViewer, a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language in 1995,  and are written in programming languages that compile to Java bytecode, usually in Java, but also in other languages such as Jython,[8] JRuby,[9] or Eiffel (via SmartEiffel).[10]<\/p><\/blockquote>\n<p>For me, it was like the first feeling that you have compiled something onto the Web &#8230; another feeling you get like this is when you build an ASP.Net website &#8230; guess it was the same for ASP developers.   What you compile is a Java class, which in our Primer Tutorial&#8217;s case will be called by a pretty simple piece of HTML.<\/p>\n<p>Anyway, could be wrong, but see this as a precursor to the idea of a Web Application and using Web Services and even to today&#8217;s mobile phone apps.<\/p>\n<p>Increasingly, alas, the support for Applets is dwindling, if my experience with Google Chrome and Java Applets is typical, but that doesn&#8217;t mean creating one doesn&#8217;t teach you a lot,  even so far as learning about Java goes.<\/p>\n<p>In this primer tutorial we will just do Hello World via XCode Java on a Mac laptop.<\/p>\n<p>Let&#8217;s  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Java\/AppletExample\/'>go<\/a> &#8230;<\/p>\n<p>Link to Java Applet more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Java_applet' title='Link to Java Applet more information'>via Wikipedia, from where quote above came<\/a>.<br \/>\nLink to Java &#8220;spiritual home&#8221; &#8230; <a target=_blank href='http:\/\/www.oracle.com\/technetwork\/java\/index.html' title='Why, Where, and How JavaFX Makes Sense ... CaptainCasa moved from Swing to JavaFX for front-end infrastructure, explaining that implementing an employee desktop front end with native technology is a valid approach and that JavaFX is a good fit. '>via Oracle and Sun, includes talk about (the recent) Java, and about download options<\/a>.<br \/>\nLink to Java Applet game &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Poker.html' title='Example of use of Java Applet'>Draw Poker game<\/a> &#8230; some of personal programming experience.<br \/>\nAnother slightly more obscure link &#8230; hope too much Applet development doesn&#8217;t result in &#8230; <a target=_blank title='OMG!' href='https:\/\/www.youtube.com\/watch?v=ZwFoJOgumBk'>OMG!<\/a>\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d772' onclick='var dv=document.getElementById(\"d772\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=15\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d772' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3700' onclick='var dv=document.getElementById(\"d3700\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=15\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3700' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Java Applets Have you ever made one? What is it? Well &#8230; according to Wikipedia &#8230; http:\/\/en.wikipedia.org\/wiki\/Java_applet &#8230; A Java applet is an applet delivered to users in the form of Java bytecode. Java applets can be part of a &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/more-java-applet-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12,37],"tags":[84,95,644,645,997,1319],"class_list":["post-3700","post","type-post","status-publish","format-standard","hentry","category-animation","category-elearning","category-tutorials","tag-animation-2","tag-applet","tag-java","tag-java-applet","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3700"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=3700"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3700\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=3700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=3700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=3700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}