{"id":2234,"date":"2013-07-02T05:14:37","date_gmt":"2013-07-01T19:14:37","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=2234"},"modified":"2013-07-02T05:14:37","modified_gmt":"2013-07-01T19:14:37","slug":"java-swing-image-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/java-swing-image-primer-tutorial\/","title":{"rendered":"Java Swing Image Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Java Swing Image Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/ImageVia_Java_Swing-1of.jpg\" title=\"Java Swing Image Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Java Swing Image Primer Tutorial<\/p><\/div>\n<p>Here is a tutorial that uses Swing functionality in Java to create a GUI (Graphical User Interface) program on a Mac laptop that displays an image file for which you browse.   Below is some information from Wikipedia regarding the <a target=_blank title='Java Swing' href='http:\/\/en.wikipedia.org\/wiki\/Swing_%28Java%29'>Java Swing<\/a> functionality:<\/p>\n<blockquote><p>Swing is the primary Java GUI widget toolkit. It is part of Oracle&#8217;s Java Foundation Classes (JFC) \u2014 an API for providing a graphical user interface (GUI) for Java programs.<\/p>\n<p>Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables, and lists.<\/p>\n<p>Unlike AWT components, Swing components are not implemented by platform-specific code. Instead they are written entirely in Java and therefore are platform-independent. The term &#8220;lightweight&#8221; is used to describe such an element.[citation needed]<\/p><\/blockquote>\n<p>This program displays an image file for which you browse via a browse dialog box.<\/p>\n<p>Let&#8217;s see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/'>Java Swing<\/a> code for this, and how it works &#8230;\n<\/p>\n<p><a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/ImageViaJavaSwing.java_GETME'>Download programming source code and rename to ImageViaJavaSwing.java<\/a><br \/>\n<a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/PrefPane.java_GETME'>Download programming source code and rename to PrefPane.java<\/a><br \/>\n<a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Java\/Swing\/Image\/AboutBox.java_GETME'>Download programming source code and rename to AboutBox.java<\/a><\/p>\n<p>But of course regarding all the information above <a target=_blank title=\"It Don't Mean a Thing (if it ain't got that swing)\" href='http:\/\/www.youtube.com\/watch?v=lMFIejZgJSM'>It Don&#8217;t Mean A Thing (if it ain&#8217;t got that swing)<\/a>.<\/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='#d2234' onclick='var dv=document.getElementById(\"d2234\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=52\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d2234' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is a tutorial that uses Swing functionality in Java to create a GUI (Graphical User Interface) program on a Mac laptop that displays an image file for which you browse. Below is some information from Wikipedia regarding the Java &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/java-swing-image-primer-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":[12,17,37],"tags":[96,549,644,648,997,1319],"class_list":["post-2234","post","type-post","status-publish","format-standard","hentry","category-elearning","category-gui","category-tutorials","tag-application","tag-gui","tag-java","tag-java-swing","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2234"}],"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=2234"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2234\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=2234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=2234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=2234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}