{"id":643,"date":"2022-07-09T10:01:26","date_gmt":"2022-07-09T10:01:26","guid":{"rendered":"https:\/\/www.kevingordon.org.uk\/kevwp4\/?p=643"},"modified":"2026-02-22T14:45:27","modified_gmt":"2026-02-22T14:45:27","slug":"getting-a-java-applet-to-work","status":"publish","type":"post","link":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/","title":{"rendered":"Getting a Java Applet to work"},"content":{"rendered":"<p>I wrote a falling blocks game as a Java Applet many years ago. Java Applets don\u2019t work any more. I found this article here <a href=\"https:\/\/examples.javacodegeeks.com\/desktop-java\/swing\/java-swing-application-example\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/examples.javacodegeeks.com\/desktop-java\/swing\/java-swing-application-example\/<\/a> and with a few simple tweaks I can now run it as a Swing application. Here In take you through the steps in which I converted the Java Applet to a Java Swing Application.<\/p>\n<p>Add the Swing libraries to the import. From:<code><br \/>\nimport java.applet.Applet;<br \/>\n<\/code><\/p>\n<p>To:<code><br \/>\nimport javax.swing.*;<br \/>\n<\/code><\/p>\n<p>Extend a JPanel not an Applet. From:<code><br \/>\npublic class KevTris extends Applet implements KeyListener {<br \/>\n<\/code><br \/>\nTo:<code><br \/>\npublic class KevTris extends JPanel implements KeyListener {<br \/>\n<\/code><br \/>\nYou\u2019ll need a main method and a createAndShowGUI method. Hooking into your existing code as below. Add:<br \/>\n<code><br \/>\nprivate static void createAndShowGUI() {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>\/\/Make sure we have nice window decorations.<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>JFrame.setDefaultLookAndFeelDecorated(true);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/Create and set up the window.<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>JFrame frame = new JFrame(\"HelloWorldSwing\");<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/Add Kevtris class<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>JPanel panel = new KevTris();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/Run init() to do something<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>((KevTris)panel).init();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>frame.getContentPane().add(panel);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/Display the window.<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>frame.pack();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>frame.setVisible(true);<\/code><\/div>\n<p><code>}<\/code><\/p>\n<p><code>public static void main(String[] argv) {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>\/\/Schedule a job for the event-dispatching thread:<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/creating and showing this application's GUI.<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>javax.swing.SwingUtilities.invokeLater(new Runnable() {<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>public void run() {<\/code><\/div>\n<div style=\"text-indent: 135px;\"><code>createAndShowGUI();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>}<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>});<\/code><\/div>\n<p><code>}<\/code><\/p>\n<p>Comment out contents of keyPressed:<br \/>\n<code>public void keyPressed(KeyEvent e) {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>\/\/ BlockAbstract tempBlock = (BlockAbstract) blockStack.peek();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ if(e.getKeyCode() == KeyEvent.VK_LEFT) {<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ tempBlock.moveLeft(1);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ debugMessages = \"went left\";<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ } else if(e.getKeyCode() == KeyEvent.VK_RIGHT) {<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ tempBlock.moveRight(1);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ debugMessages = \"went right\";<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ } else if(e.getKeyCode() == KeyEvent.VK_DOWN) {<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ tempBlock.moveDown(1);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ debugMessages = \"went down\";<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ } else if(e.getKeyCode() == KeyEvent.VK_UP) {<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ tempBlock.rotateRight();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ debugMessages = \"rotated right\";<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ } else {<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ debugMessages = \"didn't recognise: \" + e.getKeyCode();<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>\/\/ }<\/code><\/div>\n<p><code>}<\/code><\/p>\n<p>For detecting keys pressed; add your above code to init() method as following:<\/p>\n<p><code>InputMap im = getInputMap(WHEN_FOCUSED);<br \/>\nActionMap am = getActionMap();<\/code><\/p>\n<p><code>im.put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"onUp2\");<br \/>\nam.put(\"onUp2\", new AbstractAction() {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>@Override<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>public void actionPerformed(ActionEvent e) {<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>BlockAbstract tempBlock = (BlockAbstract) blockStack.peek();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>tempBlock.rotateRight();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>debugMessages = \"rotated right\";<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>}<\/code><\/div>\n<p><code>});<\/code><\/p>\n<p><code>im.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"onLeft\");<br \/>\nam.put(\"onLeft\", new AbstractAction() {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>@Override<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>public void actionPerformed(ActionEvent e) {<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>BlockAbstract tempBlock = (BlockAbstract) blockStack.peek();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>tempBlock.moveLeft(1);<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>debugMessages = \"went left\";<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>}<\/code><\/div>\n<p><code>});<\/code><\/p>\n<p><code>im.put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"onRight\");<br \/>\nam.put(\"onRight\", new AbstractAction() {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>@Override<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>public void actionPerformed(ActionEvent e) {<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>BlockAbstract tempBlock = (BlockAbstract) blockStack.peek();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>tempBlock.moveRight(1);<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>debugMessages = \"went right\";<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>}<\/code><\/div>\n<p><code>});<\/code><\/p>\n<p><code>im.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"onDown\");<br \/>\nam.put(\"onDown\", new AbstractAction() {<\/code><\/p>\n<div style=\"text-indent: 45px;\"><code>@Override<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>public void actionPerformed(ActionEvent e) {<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>BlockAbstract tempBlock = (BlockAbstract) blockStack.peek();<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>tempBlock.moveDown(1);<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>debugMessages = \"went down\";<\/code><\/div>\n<div style=\"text-indent: 90px;\"><code>repaint((long) 0);<\/code><\/div>\n<div style=\"text-indent: 45px;\"><code>}<\/code><\/div>\n<p><code>});<\/code><\/p>\n<p>See a short video here: <a href=\"https:\/\/twitter.com\/digitaltechlabs\/status\/1545564299321565185?s=20&amp;t=ARb997sRap4KYK3OAJQWtQ\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/twitter.com\/digitaltechlabs\/status\/1545564299321565185?s=20&amp;t=ARb997sRap4KYK3OAJQWtQ<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote a falling blocks game as a Java Applet many years ago. Java Applets don\u2019t work any more. I found this article here https:\/\/examples.javacodegeeks.com\/desktop-java\/swing\/java-swing-application-example\/ and with a few simple tweaks I can now run it as a Swing application. Here In take you through the steps in which I converted the Java Applet to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":659,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[3,7],"tags":[60,5,8,30,9],"class_list":["post-643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-tutorials","tag-java","tag-technology","tag-tips","tag-tutorial","tag-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting a Java Applet to work - Kev&#039;s Web<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting a Java Applet to work - Kev&#039;s Web\" \/>\n<meta property=\"og:description\" content=\"I wrote a falling blocks game as a Java Applet many years ago. Java Applets don\u2019t work any more. I found this article here https:\/\/examples.javacodegeeks.com\/desktop-java\/swing\/java-swing-application-example\/ and with a few simple tweaks I can now run it as a Swing application. Here In take you through the steps in which I converted the Java Applet to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/\" \/>\n<meta property=\"og:site_name\" content=\"Kev&#039;s Web\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-09T10:01:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-22T14:45:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"702\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kevin Gordon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@k_guk\" \/>\n<meta name=\"twitter:site\" content=\"@k_guk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kevin Gordon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/\"},\"author\":{\"name\":\"Kevin Gordon\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#\\\/schema\\\/person\\\/6f290d1865d91bf2ae6f6b460612b6fb\"},\"headline\":\"Getting a Java Applet to work\",\"datePublished\":\"2022-07-09T10:01:26+00:00\",\"dateModified\":\"2026-02-22T14:45:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/\"},\"wordCount\":142,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#\\\/schema\\\/person\\\/6f290d1865d91bf2ae6f6b460612b6fb\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/kevtris-game.jpg\",\"keywords\":[\"java\",\"technology\",\"tips\",\"tutorial\",\"tutorials\"],\"articleSection\":[\"Technology\",\"Tutorials\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/\",\"url\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/\",\"name\":\"Getting a Java Applet to work - Kev&#039;s Web\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/kevtris-game.jpg\",\"datePublished\":\"2022-07-09T10:01:26+00:00\",\"dateModified\":\"2026-02-22T14:45:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/kevtris-game.jpg\",\"contentUrl\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/kevtris-game.jpg\",\"width\":1000,\"height\":702},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/2022\\\/07\\\/09\\\/getting-a-java-applet-to-work\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting a Java Applet to work\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#website\",\"url\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/\",\"name\":\"Kev&#039;s Web\",\"description\":\"Kevin Gordon&#039;s Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#\\\/schema\\\/person\\\/6f290d1865d91bf2ae6f6b460612b6fb\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/#\\\/schema\\\/person\\\/6f290d1865d91bf2ae6f6b460612b6fb\",\"name\":\"Kevin Gordon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/kev-pic.png\",\"url\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/kev-pic.png\",\"contentUrl\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/kev-pic.png\",\"width\":192,\"height\":213,\"caption\":\"Kevin Gordon\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.kevingordon.org.uk\\\/kevwp4\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/kev-pic.png\"},\"sameAs\":[\"http:\\\/\\\/www.kevingordon.org.uk\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting a Java Applet to work - Kev&#039;s Web","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/","og_locale":"en_GB","og_type":"article","og_title":"Getting a Java Applet to work - Kev&#039;s Web","og_description":"I wrote a falling blocks game as a Java Applet many years ago. Java Applets don\u2019t work any more. I found this article here https:\/\/examples.javacodegeeks.com\/desktop-java\/swing\/java-swing-application-example\/ and with a few simple tweaks I can now run it as a Swing application. Here In take you through the steps in which I converted the Java Applet to [&hellip;]","og_url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/","og_site_name":"Kev&#039;s Web","article_published_time":"2022-07-09T10:01:26+00:00","article_modified_time":"2026-02-22T14:45:27+00:00","og_image":[{"width":1000,"height":702,"url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","type":"image\/jpeg"}],"author":"Kevin Gordon","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","twitter_creator":"@k_guk","twitter_site":"@k_guk","twitter_misc":{"Written by":"Kevin Gordon","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#article","isPartOf":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/"},"author":{"name":"Kevin Gordon","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#\/schema\/person\/6f290d1865d91bf2ae6f6b460612b6fb"},"headline":"Getting a Java Applet to work","datePublished":"2022-07-09T10:01:26+00:00","dateModified":"2026-02-22T14:45:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/"},"wordCount":142,"commentCount":0,"publisher":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#\/schema\/person\/6f290d1865d91bf2ae6f6b460612b6fb"},"image":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","keywords":["java","technology","tips","tutorial","tutorials"],"articleSection":["Technology","Tutorials"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/","url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/","name":"Getting a Java Applet to work - Kev&#039;s Web","isPartOf":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#primaryimage"},"image":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","datePublished":"2022-07-09T10:01:26+00:00","dateModified":"2026-02-22T14:45:27+00:00","breadcrumb":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#primaryimage","url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","contentUrl":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2022\/07\/kevtris-game.jpg","width":1000,"height":702},{"@type":"BreadcrumbList","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/2022\/07\/09\/getting-a-java-applet-to-work\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kevingordon.org.uk\/kevwp4\/"},{"@type":"ListItem","position":2,"name":"Getting a Java Applet to work"}]},{"@type":"WebSite","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#website","url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/","name":"Kev&#039;s Web","description":"Kevin Gordon&#039;s Blog","publisher":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#\/schema\/person\/6f290d1865d91bf2ae6f6b460612b6fb"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kevingordon.org.uk\/kevwp4\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/#\/schema\/person\/6f290d1865d91bf2ae6f6b460612b6fb","name":"Kevin Gordon","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2016\/12\/kev-pic.png","url":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2016\/12\/kev-pic.png","contentUrl":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2016\/12\/kev-pic.png","width":192,"height":213,"caption":"Kevin Gordon"},"logo":{"@id":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-content\/uploads\/2016\/12\/kev-pic.png"},"sameAs":["http:\/\/www.kevingordon.org.uk"]}]}},"_links":{"self":[{"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/comments?post=643"}],"version-history":[{"count":18,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/posts\/643\/revisions\/662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/media\/659"}],"wp:attachment":[{"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/categories?post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kevingordon.org.uk\/kevwp4\/wp-json\/wp\/v2\/tags?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}