{"id":10293,"date":"2015-08-26T00:09:09","date_gmt":"2015-08-26T04:09:09","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/?p=10293"},"modified":"2015-08-24T08:49:20","modified_gmt":"2015-08-24T12:49:20","slug":"six-buttons-arranged-in-a-2-row-x-3-column-grid-by-gridlayout","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=10293","title":{"rendered":"Six buttons arranged in a 2 row x 3 column grid by GridLayout"},"content":{"rendered":"<pre>\/.\/.\/.\/.\/.\/.\/\r\nGridTest.java Six buttons arranged in a 2 row x 3 column grid by GridLayout.GridLayout divides the window into equal-sized rectangles based upon the number of rows and columns specified. \r\n******************\r\nimport java.applet.Applet;\r\nimport java.awt.*;\r\n\r\n\/** An example of GridLayout.\r\n\u00a0*\r\n\u00a0\/.\/.\/.\/.\/.\/.\r\n\r\npublic class GridTest extends Applet {\r\n\u00a0 public void init() {\r\n\u00a0\u00a0\u00a0 setLayout(new GridLayout(2,3)); \/\/ 2 rows, 3 cols\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button One\"));\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button Two\"));\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button Three\"));\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button Four\"));\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button Five\"));\r\n\u00a0\u00a0\u00a0 add(new Button(\"Button Six\"));\r\n\u00a0 }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/.\/.\/.\/.\/.\/.\/ GridTest.java Six buttons arranged in a 2 row x 3 column grid by GridLayout.GridLayout divides the window into equal-sized rectangles based upon the number of rows and columns specified. ****************** import java.applet.Applet; import java.awt.*; \/** An example of GridLayout. \u00a0* \u00a0\/.\/.\/.\/.\/.\/. public class GridTest extends Applet { \u00a0 public void init() { \u00a0\u00a0\u00a0 setLayout(new &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=10293\">Continue reading<\/a><\/p>\n","protected":false},"author":130,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1417,1424],"tags":[706,308,285],"class_list":["post-10293","post","type-post","status-publish","format-standard","hentry","category-code-programming-samples--","category-javaj2eej2me","tag-code","tag-java","tag-285","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":27227,"url":"http:\/\/bangla.sitestree.com\/?p=27227","url_meta":{"origin":10293,"position":0},"title":"Six buttons arranged in a 2 row x 3 column grid by GridLayout #Programming Code Examples #Java\/J2EE\/J2ME #Advanced Swing","author":"Author-Check- Article-or-Video","date":"May 14, 2021","format":false,"excerpt":"\/.\/.\/.\/.\/.\/.\/ GridTest.java Six buttons arranged in a 2 row x 3 column grid by GridLayout.GridLayout divides the window into equal-sized rectangles based upon the number of rows and columns specified. ****************** import java.applet.Applet; import java.awt.*; \/** An example of GridLayout. * \/.\/.\/.\/.\/.\/. public class GridTest extends Applet { public void\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10370,"url":"http:\/\/bangla.sitestree.com\/?p=10370","url_meta":{"origin":10293,"position":1},"title":"Layout of a complicated GUI interface with GridLayout","author":"","date":"August 27, 2015","format":false,"excerpt":"################################## GridBagTest.java Layout of a complicated GUI interface with GridLayout. Uses WindowUtilities.java and ExitListener.java. ################################## import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; \/** An example demonstrating a GridBagLayout GUI with \u00a0*\u00a0 input text area and multiple buttons. \u00a0* \u00a0********* public class GridBagTest extends JPanel { \u00a0 private\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27052,"url":"http:\/\/bangla.sitestree.com\/?p=27052","url_meta":{"origin":10293,"position":2},"title":"Layout of a complicated GUI interface with GridLayout #Programming Code Examples #Java\/J2EE\/J2ME #AWT Components","author":"Author-Check- Article-or-Video","date":"May 9, 2021","format":false,"excerpt":"################################## GridBagTest.java Layout of a complicated GUI interface with GridLayout. Uses WindowUtilities.java and ExitListener.java. ################################## import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; \/** An example demonstrating a GridBagLayout GUI with * input text area and multiple buttons. * ********* public class GridBagTest extends JPanel { private JTextArea\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10282,"url":"http:\/\/bangla.sitestree.com\/?p=10282","url_meta":{"origin":10293,"position":3},"title":"Places a Panel holding 100 buttons in a ScrollPane","author":"","date":"August 26, 2015","format":false,"excerpt":"import java.applet.Applet; import java.awt.*; \/** Places a Panel holding 100 buttons in a ScrollPane that is \u00a0*\u00a0 too small to hold it. \u00a0* \u00a0 *\/ public class ScrollPaneTest extends Applet { \u00a0 public void init() { \u00a0\u00a0\u00a0 setLayout(new BorderLayout()); \u00a0\u00a0\u00a0 ScrollPane pane = new ScrollPane(); \u00a0\u00a0\u00a0 Panel bigPanel = new\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10319,"url":"http:\/\/bangla.sitestree.com\/?p=10319","url_meta":{"origin":10293,"position":4},"title":"java Nested container where the top-level panels are positioned by hand","author":"","date":"August 26, 2015","format":false,"excerpt":"###################### ButtonCol.java Nested container where the top-level panels are positioned by hand ###################### import java.applet.Applet; import java.awt.*; \/** An example of a layout performed manually. The top-level \u00a0*\u00a0 panels are positioned by hand, after you determine the size \u00a0*\u00a0 of the applet. Since applets can't be resized in most \u00a0*\u00a0\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27217,"url":"http:\/\/bangla.sitestree.com\/?p=27217","url_meta":{"origin":10293,"position":5},"title":"Places a Panel holding 100 buttons in a ScrollPane #Programming Code Examples #Java\/J2EE\/J2ME #Advanced Swing","author":"Author-Check- Article-or-Video","date":"May 14, 2021","format":false,"excerpt":"import java.applet.Applet; import java.awt.*; \/** Places a Panel holding 100 buttons in a ScrollPane that is * too small to hold it. * *\/ public class ScrollPaneTest extends Applet { public void init() { setLayout(new BorderLayout()); ScrollPane pane = new ScrollPane(); Panel bigPanel = new Panel(); bigPanel.setLayout(new GridLayout(10, 10)); for(int\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/130"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10293"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10293\/revisions"}],"predecessor-version":[{"id":10294,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10293\/revisions\/10294"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10293"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}