{"id":106,"date":"2015-09-02T09:06:49","date_gmt":"2015-09-02T09:06:49","guid":{"rendered":"http:\/\/mlapshin.com\/?page_id=106"},"modified":"2018-05-12T14:23:13","modified_gmt":"2018-05-12T14:23:13","slug":"swingset3","status":"publish","type":"page","link":"https:\/\/mlapshin.com\/index.php\/projects\/swingset3\/","title":{"rendered":"SwingSet3 Demo"},"content":{"rendered":"<p>I worked side by side with legendary Swing developers: Jeff Dinkins, Scott Violet, Igor Kushnirsky, Alexander Potochkin and many others and I am very proud of\u00a0this.<\/p>\n<div id=\"attachment_111\" style=\"width: 427px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet2.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-111\" class=\"wp-image-111\" src=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet2.jpg\" alt=\"Photo of Jeff Dinkins in SwingSet2\" width=\"417\" height=\"372\" srcset=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet2.jpg 682w, https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet2-300x268.jpg 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/a><p id=\"caption-attachment-111\" class=\"wp-caption-text\">SwingSet2 &#8211; ComboBox Demo &#8211; Jeff Dinkins<\/p><\/div>\n<p>I suppose, every\u00a0person who started studying Java tried examples included into the JDK. Do you remember SwingSet2 application that demonstrated all\u00a0Java graphical capabilities? I think, you do.\u00a0Personally I learned Swing using this great app.\u00a0And how could I\u00a0stand aside when I was asked to create a\u00a0demo for the\u00a0new SwingSet3 application?<\/p>\n<p>Each\u00a0demo in\u00a0SwingSet3 devoted to a specific\u00a0UI control\u00a0like sliced faces\u00a0demo to JComboBox, etc. When I joined to the project only GridBagLayout and\u00a0JSpinner were left. My friend quickly took the layout and said his favorite task\u00a0is writing\u00a0calculator programs. So, JSpinner became mine.<\/p>\n<p>What interesting could I do with this not so popular control? Finally I decided to implement code drawing a\u00a0Mandelbrot Set where JSpinner serves very well allowing to tune the palette easily and navigate through the set. I think my demo is one of the most impressive in the app. Also it uses several threads to maximally utilize\u00a0CPU power for fractal calculations.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_113\" style=\"width: 488px\" class=\"wp-caption alignright\"><a href=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet3.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-113\" class=\"wp-image-113\" src=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet3.jpg\" alt=\"SwingSet3 - JSpinner Demo\" width=\"478\" height=\"377\" srcset=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet3.jpg 898w, https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/SwingSet3-300x237.jpg 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/a><p id=\"caption-attachment-113\" class=\"wp-caption-text\">SwinSet3 &#8211; JSpinner Demo by Mikhail Lapshin<span style=\"text-align: left;\">The original SVN repository of the project could be downloaded <\/span><a style=\"text-align: left;\" href=\"https:\/\/github.com\/sjas\/swingset3\/blob\/master\/trunk\/SwingSet3\/src\/com\/sun\/swingset3\/demos\/spinner\/JMandelbrot.java\" target=\"_blank\" rel=\"noopener\">here<\/a><span style=\"text-align: left;\">.<\/span><\/p><\/div>\n<p>If you like to try SwingSet3, please do the following:<\/p>\n<ol>\n<li>You should have Java installed<\/li>\n<li>Download <a href=\"https:\/\/mlapshin.com\/swingset3\/SwingSet3.jnlp\" target=\"_blank\" rel=\"noopener\">SwingSet3.jnlp<\/a> file and save it locally<\/li>\n<li>Click on\u00a0SwingSet3.jnlp to start the application<\/li>\n<li>If security restrictions does not allow to run it\n<ol>\n<li>Open control panel<\/li>\n<li>Find and open\u00a0<em>Java<\/em> entry<\/li>\n<li>Navigate to\u00a0<em>Security<\/em> tab<\/li>\n<li>In the<em> Exception Site List<\/em> add <em>mlapshin.com<\/em> using <em>Edit Site List<\/em> button<\/li>\n<li>Try to launch the application again<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div id=\"attachment_132\" style=\"width: 285px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/JavaSecuritySettings.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-132\" class=\"wp-image-132 size-medium\" src=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/JavaSecuritySettings-275x300.jpg\" alt=\"Java Security Settings\" width=\"275\" height=\"300\" srcset=\"https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/JavaSecuritySettings-275x300.jpg 275w, https:\/\/mlapshin.com\/wp-content\/uploads\/2015\/09\/JavaSecuritySettings.jpg 564w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/a><p id=\"caption-attachment-132\" class=\"wp-caption-text\">Java Security Settings<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I worked side by side with legendary Swing developers: Jeff Dinkins, Scott Violet, Igor Kushnirsky, Alexander Potochkin and many others and I am very proud of\u00a0this. I suppose, every\u00a0person who started studying Java tried examples included into the JDK. Do&hellip; <br \/><a class=\"read-more-button\" href=\"https:\/\/mlapshin.com\/index.php\/projects\/swingset3\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":140,"menu_order":50,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-106","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/pages\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":33,"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/pages\/106\/revisions"}],"predecessor-version":[{"id":995,"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/pages\/106\/revisions\/995"}],"up":[{"embeddable":true,"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/pages\/140"}],"wp:attachment":[{"href":"https:\/\/mlapshin.com\/index.php\/wp-json\/wp\/v2\/media?parent=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}