{"id":1287,"date":"2014-03-06T08:35:52","date_gmt":"2014-03-06T08:35:52","guid":{"rendered":"http:\/\/graham-kendall.com\/blog\/?p=1287"},"modified":"2020-09-22T01:58:20","modified_gmt":"2020-09-22T01:58:20","slug":"what-java-gui-to-use","status":"publish","type":"post","link":"https:\/\/graham-kendall.com\/blog\/what-java-gui-to-use\/","title":{"rendered":"What Java GUI development tool shoud I use?"},"content":{"rendered":"<p>In my <a href=\"https:\/\/graham-kendall.com\/blog\/2014\/03\/time-to-switch-to-java\/\">previous post<\/a>, I outlined the reasons why I was switching to Java as the programming language of choice for a football prediction system that I am developing. In this post, I try to decide what Java GUI development tool I should use? Should I use Swing or SWT as my Java GUI builder?<\/p>\n<h1>Getting to grips with Java<\/h1>\n<figure id=\"attachment_1291\" aria-describedby=\"caption-attachment-1291\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/03\/AJDT_Eclipse_Screen.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-medium wp-image-1291  \" title=\"What Java tool shoud I use to develop a GUI?\" alt=\"Eclipse IDE (Dowsnloaded from Google, vis Creative Commons - 06 Mar 2014)\" src=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/03\/AJDT_Eclipse_Screen-300x216.jpg\" width=\"300\" height=\"216\" srcset=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/03\/AJDT_Eclipse_Screen-300x216.jpg 300w, https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/03\/AJDT_Eclipse_Screen-416x300.jpg 416w, https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/03\/AJDT_Eclipse_Screen.jpg 875w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1291\" class=\"wp-caption-text\">Eclipse IDE (Dowsnloaded from Google, vis Creative Commons &#8211; 06 Mar 2014)<\/figcaption><\/figure>\n<p>I still need to get my head around Java. As I said before, I have done some Java programming but I&#8217;ll need to get a lot more skilled with the language. But, as one of the key reasons for switching to Java is to try and find an easier way (for me) to develop a graphical user interface, I thought that I ought to try and make that decision now.<\/p>\n<h1>WindowBuilder<\/h1>\n<p>Digging around, there are some tools that I could use. Eclipse WindowBuilder seems to get a decent write up, so I decided to use that. At the time of writing, I have installed this as part of my Eclipse installation. So far, so good.<\/p>\n<h1>Swing or SWT as the Java GUI helper?<\/h1>\n<p>Once I started digging a little deeper, I found that I had to make another decsion, whether to use Swing or SWT as my Java GUI builder. This does not seem so easy to answer. Searching for comparisons (this one is <a href=\"http:\/\/stackoverflow.com\/questions\/2306190\/java-desktop-application-swt-vs-swing\" target=\"_blank\" rel=\"noopener noreferrer\">typical<\/a>) tends to brings up pros and cons for each, with the conclusion that there is no right or wrong answer, in the same way that there is not clear cut answer whether you should use <a href=\"https:\/\/www.eclipse.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Eclipse<\/a>, <a href=\"https:\/\/netbeans.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">NetBeans<\/a> or <a href=\"www.jetbrains.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">IntelliJ<\/a> as your IDE.<\/p>\n<p>So, at the moment, I am still none the wiser whether to use Swing or SWT. Unless anybody has any insights (please feel free to leave a comment)\u00a0 I think I might have to try both. Probably eaiser said than done, as I am no where near the stage where I can get a Window to display on the screen, let alone decide the best tool to do it!<\/p>\n<p>I&#8217;ll try to report more later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post, I outlined the reasons why I was switching to Java as the programming language of choice for a football prediction system that I am developing. In this post, I try to decide what Java GUI development tool I should use? Should I use Swing or SWT as my Java GUI builder? [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,158],"tags":[157],"class_list":["post-1287","post","type-post","status-publish","format-standard","hentry","category-archive","category-programming","tag-prediction_project"],"_links":{"self":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":5,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":1619,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1287\/revisions\/1619"}],"wp:attachment":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}