{"id":967,"date":"2012-11-11T19:59:46","date_gmt":"2012-11-11T19:59:46","guid":{"rendered":"http:\/\/ilias-laptop\/examples\/desktop-java\/awt\/event\/action-class-example\/"},"modified":"2013-03-04T14:54:57","modified_gmt":"2013-03-04T12:54:57","slug":"action-class-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/","title":{"rendered":"Action Class example"},"content":{"rendered":"<p>With this example we shall show you how to work with Action class in Java. In many ways the use of the <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/javax\/swing\/Action.html\"><code>Action<\/code><\/a> class is pretty much the same as the use of the <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/javax\/swing\/AbstractAction.html\"><code>ActionListener<\/code><\/a> interface.<\/p>\n<p>With <code>Action<\/code> class you can monitor a number of events in a component and customize the behavior of your application when a specific event occurs. The action class is very flexible because you can construct a number of classes that extend <code>AbstractAction<\/code> and customize your own <code>Action<\/code> and your own events you wish to monitor.<\/p>\n<p>Basically, all you have to do in order to work with <code>Action<\/code> class is:<\/p>\n<ul>\n<li>Create a number of classes that extend the <code>AbstractAction<\/code> class.<\/li>\n<li>Override the <code>actionPerformed<\/code> to customize the handling of a specific event.<\/li>\n<li>Use the <code>putValue<\/code> method to set the specific values of different parameters to further customize the events you want to handle.<\/li>\n<\/ul>\n<p>Let&#8217;s see the code snippets that follow:<\/p>\n<pre class=\"brush:java\">package com.javacodegeeks.snippets.desktop;\r\n\r\nimport java.awt.BorderLayout;\r\nimport java.awt.Font;\r\nimport java.awt.GridLayout;\r\nimport java.awt.event.ActionEvent;\r\nimport java.awt.event.KeyEvent;\r\n\r\nimport javax.swing.AbstractAction;\r\nimport javax.swing.Action;\r\nimport javax.swing.BorderFactory;\r\nimport javax.swing.ImageIcon;\r\nimport javax.swing.JButton;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JLabel;\r\nimport javax.swing.JMenu;\r\nimport javax.swing.JMenuBar;\r\nimport javax.swing.JMenuItem;\r\nimport javax.swing.JPanel;\r\n\r\npublic class Main extends JFrame {\r\n\r\n    private int gotoChannel = 5;\r\n\r\n    private JLabel channelLabel = new JLabel();\r\n\r\n    public static final int Min_Channel = 2;\r\n\r\n    private int curr_chanel = Min_Channel;\r\n\r\n    private Action incrAction = new Increase();\r\n\r\n    public static final int MAX_CHANNEL = 20;\r\n\r\n    private Action decrAction = new Decrese();\r\n\r\n    private GotoAction gotoAction = new GotoAction();\r\n\r\n    private Action setGoToAction = new SetGoToAction();\r\n\r\n    public class Increase extends AbstractAction {\r\n\r\n  public Increase() {\r\n\r\nputValue(NAME, \"Increase\");\r\n\r\nputValue(SHORT_DESCRIPTION, \"Increment the number\");\r\n\r\nputValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_U));\r\n\r\n  }\r\n\r\n  @Override\r\n\r\n  public void actionPerformed(ActionEvent ae) {\r\n\r\nsetChannel(curr_chanel + 1);\r\n\r\n  }\r\n    }\r\n\r\n    public class Decrese extends AbstractAction {\r\n\r\n  public Decrese() {\r\n\r\nputValue(NAME, \"Decrease\");\r\n\r\nputValue(SHORT_DESCRIPTION, \"Decrement the number\");\r\n\r\nputValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_D));\r\n\r\n  }\r\n\r\n  @Override\r\n\r\n  public void actionPerformed(ActionEvent ae) {\r\n\r\nsetChannel(curr_chanel - 1);\r\n\r\n  }\r\n    }\r\n\r\n    public class GotoAction extends AbstractAction {\r\n\r\n  public GotoAction() {\r\n\r\nputValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_G));\r\n\r\nupdate();\r\n\r\n  }\r\n\r\n  public void update() {\r\n\r\nputValue(NAME, \"Go to \" + gotoChannel);\r\n\r\nputValue(SHORT_DESCRIPTION, \"Change to \"\r\n\r\n  + gotoChannel);\r\n\r\n  }\r\n\r\n  @Override\r\n\r\n  public void actionPerformed(ActionEvent ae) {\r\n\r\nsetChannel(gotoChannel);\r\n\r\n  }\r\n    }\r\n\r\n    public class SetGoToAction extends AbstractAction {\r\n\r\n  public SetGoToAction() {\r\n\r\nputValue(NAME, \"Set 'Go to' number\");\r\n\r\nputValue(SHORT_DESCRIPTION,\"Make current number the goto channel\");\r\n\r\nputValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_S));\r\n\r\n  }\r\n\r\n  @Override\r\n\r\n  public void actionPerformed(ActionEvent ae) {\r\n\r\ngotoChannel = curr_chanel;\r\n\r\ngotoAction.update();\r\n\r\nsetEnabled(false);\r\n\r\ngotoAction.setEnabled(false);\r\n\r\n  }\r\n    }\r\n\r\n    public Main() {\r\n\r\n  super(\"\");\r\n\r\n  setChannel(curr_chanel); \r\n\r\n  channelLabel.setHorizontalAlignment(JLabel.CENTER);\r\n\r\n  channelLabel.setFont(new Font(\"Serif\", Font.PLAIN, 42));\r\n\r\n  getContentPane().add(channelLabel, BorderLayout.NORTH);\r\n\r\n  JPanel buttonPanel = new JPanel(new GridLayout(4, 4, 36, 66));\r\n\r\n  buttonPanel.setBorder(BorderFactory.createEmptyBorder(6, 16, 16, 16));\r\n\r\n  getContentPane().add(buttonPanel, BorderLayout.CENTER);\r\n\r\n  buttonPanel.add(new JButton(incrAction));\r\n\r\n  buttonPanel.add(new JButton(gotoAction));\r\n\r\n  buttonPanel.add(new JButton(decrAction));\r\n\r\n  buttonPanel.add(new JButton(setGoToAction));\r\n\r\n  JMenuBar menuBar = new JMenuBar();\r\n\r\n  JMenu menu = new JMenu(\"Number\");\r\n\r\n  menu.add(new JMenuItem(incrAction));\r\n\r\n  menu.add(new JMenuItem(decrAction));\r\n\r\n  menu.addSeparator();\r\n\r\n  menu.add(new JMenuItem(gotoAction));\r\n\r\n  menu.add(new JMenuItem(setGoToAction));\r\n\r\n  menuBar.add(menu);\r\n\r\n  setJMenuBar(menuBar);\r\n    }\r\n\r\n    public void setChannel(int chan) {\r\n\r\n  curr_chanel = chan;\r\n\r\n  channelLabel.setText(\"Number is: \" + curr_chanel);\r\n\r\n  decrAction.setEnabled(curr_chanel &gt; Min_Channel);\r\n\r\n  incrAction.setEnabled(curr_chanel &lt; MAX_CHANNEL);\r\n\r\n  gotoAction.setEnabled(curr_chanel != gotoChannel);\r\n\r\n  setGoToAction.setEnabled(curr_chanel != gotoChannel);\r\n    }\r\n\r\n    public static void main(String argv[]) {\r\n\r\n  JFrame Jframe = new Main();\r\n\r\n  Jframe.setSize(800, 600);\r\n\r\n  Jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n  Jframe.setVisible(true);\r\n    }\r\n}<\/pre>\n<p>&nbsp;<br \/>\nThis was an example on how to use the Action class in Java.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of the ActionListener interface. With Action class you can monitor a number of events in a component and customize the behavior of your &hellip;<\/p>\n","protected":false},"author":6,"featured_media":1243,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[1076,195,1090],"class_list":["post-967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-event","tag-awt","tag-desktop-java-2","tag-event"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Action Class example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Action Class example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-11T19:59:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-03-04T12:54:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Byron Kiourtzoglou\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Byron Kiourtzoglou\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\"},\"author\":{\"name\":\"Byron Kiourtzoglou\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015\"},\"headline\":\"Action Class example\",\"datePublished\":\"2012-11-11T19:59:46+00:00\",\"dateModified\":\"2013-03-04T12:54:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\"},\"wordCount\":163,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg\",\"keywords\":[\"awt\",\"desktop java\",\"event\"],\"articleSection\":[\"event\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\",\"name\":\"Action Class example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg\",\"datePublished\":\"2012-11-11T19:59:46+00:00\",\"dateModified\":\"2013-03-04T12:54:57+00:00\",\"description\":\"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg\",\"width\":\"360\",\"height\":\"360\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Desktop Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"awt\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/awt\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"event\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/awt\/event\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"Action Class example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015\",\"name\":\"Byron Kiourtzoglou\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg\",\"caption\":\"Byron Kiourtzoglou\"},\"description\":\"Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications\/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.\",\"sameAs\":[\"https:\/\/www.pivotalgamers.com\/\",\"https:\/\/www.linkedin.com\/in\/byron-kiourtzoglou-530ab222\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/byron-kiourtzoglou\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Action Class example - Java Code Geeks","description":"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/","og_locale":"en_US","og_type":"article","og_title":"Action Class example - Java Code Geeks","og_description":"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of","og_url":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-11-11T19:59:46+00:00","article_modified_time":"2013-03-04T12:54:57+00:00","og_image":[{"width":360,"height":360,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg","type":"image\/jpeg"}],"author":"Byron Kiourtzoglou","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Byron Kiourtzoglou","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/"},"author":{"name":"Byron Kiourtzoglou","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015"},"headline":"Action Class example","datePublished":"2012-11-11T19:59:46+00:00","dateModified":"2013-03-04T12:54:57+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/"},"wordCount":163,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg","keywords":["awt","desktop java","event"],"articleSection":["event"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/","url":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/","name":"Action Class example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg","datePublished":"2012-11-11T19:59:46+00:00","dateModified":"2013-03-04T12:54:57+00:00","description":"With this example we shall show you how to work with Action class in Java. In many ways the use of the Action class is pretty much the same as the use of","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-duke-logo.jpg","width":"360","height":"360"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/desktop-java\/awt\/event\/action-class-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Desktop Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/"},{"@type":"ListItem","position":4,"name":"awt","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/awt\/"},{"@type":"ListItem","position":5,"name":"event","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/desktop-java\/awt\/event\/"},{"@type":"ListItem","position":6,"name":"Action Class example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015","name":"Byron Kiourtzoglou","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg","caption":"Byron Kiourtzoglou"},"description":"Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications\/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.","sameAs":["https:\/\/www.pivotalgamers.com\/","https:\/\/www.linkedin.com\/in\/byron-kiourtzoglou-530ab222"],"url":"https:\/\/examples.javacodegeeks.com\/author\/byron-kiourtzoglou\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=967"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/967\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1243"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}