{"id":27046,"date":"2021-05-09T23:10:04","date_gmt":"2021-05-10T03:10:04","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/textfields-programming-code-examples-java-j2ee-j2me-awt-components\/"},"modified":"2021-05-09T23:10:04","modified_gmt":"2021-05-10T03:10:04","slug":"textfields-programming-code-examples-java-j2ee-j2me-awt-components","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=27046","title":{"rendered":"TextFields #Programming Code Examples #Java\/J2EE\/J2ME #AWT Components"},"content":{"rendered":"<pre>\n\nimport java.applet.Applet;\nimport java.awt.*;\n\n\/** A TextField from each of the four constructors.\n *\n *********************\n\npublic class TextFields extends Applet {\n  public void init() {\n    add(new TextField());\n    add(new TextField(30));\n    add(new TextField(&quot;Initial String&quot;));\n    add(new TextField(&quot;Initial&quot;, 30));\n  }\n}\n<\/pre>\n<p>Note: Brought from our old site: http:\/\/www.salearningschool.com\/example_codes\/ on Jan 2nd, 2017 From: http:\/\/sitestree.com\/?p=10341<br \/> Categories:Programming Code Examples, Java\/J2EE\/J2ME, AWT Components<br \/>Tags:Java\/J2EE\/J2MEAWT Components<br \/> Post Data:2017-01-02 16:04:35<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>import java.applet.Applet; import java.awt.*; \/** A TextField from each of the four constructors. * ********************* public class TextFields extends Applet { public void init() { add(new TextField()); add(new TextField(30)); add(new TextField(&quot;Initial String&quot;)); add(new TextField(&quot;Initial&quot;, 30)); } } Note: Brought from our old site: http:\/\/www.salearningschool.com\/example_codes\/ on Jan 2nd, 2017 From: http:\/\/sitestree.com\/?p=10341 Categories:Programming Code Examples, Java\/J2EE\/J2ME, AWT &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=27046\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-27046","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10359,"url":"http:\/\/bangla.sitestree.com\/?p=10359","url_meta":{"origin":27046,"position":0},"title":"TextFields","author":"","date":"August 27, 2015","format":false,"excerpt":"import java.applet.Applet; import java.awt.*; \/** A TextField from each of the four constructors. \u00a0* \u00a0********************* public class TextFields extends Applet { \u00a0 public void init() { \u00a0\u00a0\u00a0 add(new TextField()); \u00a0\u00a0\u00a0 add(new TextField(30)); \u00a0\u00a0\u00a0 add(new TextField(\"Initial String\")); \u00a0\u00a0\u00a0 add(new TextField(\"Initial\", 30)); \u00a0 } }","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":27223,"url":"http:\/\/bangla.sitestree.com\/?p=27223","url_meta":{"origin":27046,"position":1},"title":"ListEvent2.java #Programming Code Examples #Java\/J2EE\/J2ME #Advanced Swing","author":"Author-Check- Article-or-Video","date":"May 14, 2021","format":false,"excerpt":"# ListEvents.java Uses the following classes: * CloseableFrame.java * SelectionReporter.java * ActionReporter.java \/.\/.\/.\/.\/.\/.\/.\/.\/.\/.\/.\/.\/ import java.awt.event.*; \/.\/.\/.\/.\/.\/.\/ public class ListEvents2 extends ListEvents { public static void main(String[] args) { new ListEvents2(); } \/** Extends ListEvents with the twist that * typing any of the letters of \"JAVA\" or \"java\" * over\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":27056,"url":"http:\/\/bangla.sitestree.com\/?p=27056","url_meta":{"origin":27046,"position":2},"title":"Custom AWT Slider #Programming Code Examples #Java\/J2EE\/J2ME #AWT Components","author":"Author-Check- Article-or-Video","date":"May 9, 2021","format":false,"excerpt":"***************** Custom AWT Slider * LabeledCostSlider.java. A numeric slider class with attached label. * CostSlider.java. A slider class that lets you read numeric values. Used in the LabeledCostSlider class. * Slider.java. A slider class: a combination of Scrollbar and TextField. Used in the CostSlider class. * ScrollbarPanel.java A Panel with\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":26773,"url":"http:\/\/bangla.sitestree.com\/?p=26773","url_meta":{"origin":27046,"position":3},"title":"A TextField that uses key events to correct the spelling of the names of computer languages entered into it #Programming Code Examples #Java\/J2EE\/J2ME #Mouse and Keyboard Events","author":"Author-Check- Article-or-Video","date":"May 1, 2021","format":false,"excerpt":"import java.awt.*; import java.awt.event.*; \/** A spelling-correcting TextField for entering * a language name. * ******************* public class LanguageField extends TextField { private String[] substrings = { \"\", \"J\", \"Ja\", \"Jav\", \"Java\" }; public LanguageField() { addKeyListener(new SpellingCorrector()); addActionListener(new WordCompleter()); addFocusListener(new SubliminalAdvertiser()); } \/\/ Put caret at end of field.\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":26781,"url":"http:\/\/bangla.sitestree.com\/?p=26781","url_meta":{"origin":27046,"position":4},"title":"A textfield and three buttons arranged by a verticle BoxLayout #Programming Code Examples #Java\/J2EE\/J2ME #Layout Managers","author":"Author-Check- Article-or-Video","date":"May 1, 2021","format":false,"excerpt":"BoxLayoutTest.java A textfield and three buttons arranged by a verticle BoxLayout. Uses WindowUtilities.java and ExitListener.java. ################## import java.awt.*; import java.awt.event.*; import javax.swing.*; \/** An example of BoxLayout. * *********** public class BoxLayoutTest extends JPanel implements ActionListener{ BoxLayout layout; JButton topButton, middleButton, bottomButton; public BoxLayoutTest() { layout = new BoxLayout(this, BoxLayout.Y_AXIS);\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":27052,"url":"http:\/\/bangla.sitestree.com\/?p=27052","url_meta":{"origin":27046,"position":5},"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":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27046","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\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27046"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27046\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27046"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}