{"id":10239,"date":"2015-08-25T07:19:34","date_gmt":"2015-08-25T11:19:34","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/?p=10239"},"modified":"2015-08-24T08:43:54","modified_gmt":"2015-08-24T12:43:54","slug":"simple-button-that-the-user-can-select-to-load-the-entered-url","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=10239","title":{"rendered":"Simple button that the user can select to load the entered URL."},"content":{"rendered":"<pre>JIconButton.java A simple button that the user can select to load the entered URL. \r\nimport javax.swing.*;\r\n\r\n\/** A regular JButton created with an ImageIcon and with borders\r\n\u00a0*\u00a0 and content areas turned off.\r\n\u00a0*\r\n\u00a0 *\/\r\n\r\npublic class JIconButton extends JButton {\r\n\u00a0 public JIconButton(String file) {\r\n\u00a0\u00a0\u00a0 super(new ImageIcon(file));\r\n\u00a0\u00a0\u00a0 setContentAreaFilled(false);\r\n\u00a0\u00a0\u00a0 setBorderPainted(false);\r\n\u00a0\u00a0\u00a0 setFocusPainted(false);\r\n\u00a0 }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>JIconButton.java A simple button that the user can select to load the entered URL. import javax.swing.*; \/** A regular JButton created with an ImageIcon and with borders \u00a0*\u00a0 and content areas turned off. \u00a0* \u00a0 *\/ public class JIconButton extends JButton { \u00a0 public JIconButton(String file) { \u00a0\u00a0\u00a0 super(new ImageIcon(file)); \u00a0\u00a0\u00a0 setContentAreaFilled(false); \u00a0\u00a0\u00a0 setBorderPainted(false); \u00a0\u00a0\u00a0 &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=10239\">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,1],"tags":[706,308,285],"class_list":["post-10239","post","type-post","status-publish","format-standard","hentry","category-code-programming-samples--","category-javaj2eej2me","category-root","tag-code","tag-java","tag-285","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":26926,"url":"http:\/\/bangla.sitestree.com\/?p=26926","url_meta":{"origin":10239,"position":0},"title":"Simple button that the user can select to load the entered URL. #Programming Code Examples #Java\/J2EE\/J2ME #Basic Swing","author":"Author-Check- Article-or-Video","date":"May 5, 2021","format":false,"excerpt":"JIconButton.java A simple button that the user can select to load the entered URL. import javax.swing.*; \/** A regular JButton created with an ImageIcon and with borders * and content areas turned off. * *\/ public class JIconButton extends JButton { public JIconButton(String file) { super(new ImageIcon(file)); setContentAreaFilled(false); setBorderPainted(false); setFocusPainted(false);\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":10218,"url":"http:\/\/bangla.sitestree.com\/?p=10218","url_meta":{"origin":10239,"position":1},"title":"Creates various buttons. In Swing","author":"","date":"August 25, 2015","format":false,"excerpt":"import java.awt.*; import javax.swing.*; \/** Simple example illustrating the use of JButton, especially \u00a0*\u00a0 the new constructors that permit you to add an image. \u00a0* \u00a0 *\/ public class JButtons extends JFrame { \u00a0 public static void main(String[] args) { \u00a0\u00a0\u00a0 new JButtons(); \u00a0 } \u00a0 public JButtons() { \u00a0\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":26908,"url":"http:\/\/bangla.sitestree.com\/?p=26908","url_meta":{"origin":10239,"position":2},"title":"Creates various buttons. In Swing #Programming Code Examples #Java\/J2EE\/J2ME #Basic Swing","author":"Author-Check- Article-or-Video","date":"May 5, 2021","format":false,"excerpt":"import java.awt.*; import javax.swing.*; \/** Simple example illustrating the use of JButton, especially * the new constructors that permit you to add an image. * *\/ public class JButtons extends JFrame { public static void main(String[] args) { new JButtons(); } public JButtons() { super(\"Using JButton\"); WindowUtilities.setNativeLookAndFeel(); addWindowListener(new ExitListener()); Container\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":10235,"url":"http:\/\/bangla.sitestree.com\/?p=10235","url_meta":{"origin":10239,"position":3},"title":"A simple button that contains an image and a label for use in a toolbar","author":"","date":"August 25, 2015","format":false,"excerpt":"ToolBarButton.java A simple button that contains an image and a label for use in a toolbar. import java.awt.*; import javax.swing.*; \/** Part of a small example showing basic use of JToolBar. \u00a0*\u00a0 The point here is that dropping a regular JButton in a \u00a0*\u00a0 JToolBar (or adding an Action) in\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":26922,"url":"http:\/\/bangla.sitestree.com\/?p=26922","url_meta":{"origin":10239,"position":4},"title":"A simple button that contains an image and a label for use in a toolbar #Programming Code Examples #Java\/J2EE\/J2ME #Basic Swing","author":"Author-Check- Article-or-Video","date":"May 5, 2021","format":false,"excerpt":"ToolBarButton.java A simple button that contains an image and a label for use in a toolbar. import java.awt.*; import javax.swing.*; \/** Part of a small example showing basic use of JToolBar. * The point here is that dropping a regular JButton in a * JToolBar (or adding an Action) in\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":10487,"url":"http:\/\/bangla.sitestree.com\/?p=10487","url_meta":{"origin":10239,"position":5},"title":"Loading Images","author":"","date":"August 29, 2015","format":false,"excerpt":"JavaMan1.java Applet that loads an image from a relative URL. ************************************************************* import java.applet.Applet; import java.awt.*; \/** An applet that loads an image from a relative URL. \u00a0* >>>>>>>>>>>>>>>>>>> public class JavaMan1 extends Applet { \u00a0 private Image javaMan; \u00a0 public void init() { \u00a0\u00a0\u00a0 javaMan = getImage(getCodeBase(),\"images\/Java-Man.gif\"); \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":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10239","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=10239"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10239\/revisions"}],"predecessor-version":[{"id":10240,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/10239\/revisions\/10240"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10239"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}