{"id":35892,"date":"2016-04-12T11:00:11","date_gmt":"2016-04-12T08:00:11","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=35892"},"modified":"2019-04-09T13:21:11","modified_gmt":"2019-04-09T10:21:11","slug":"vaadin-button-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/","title":{"rendered":"Vaadin Button Example"},"content":{"rendered":"<p>A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a button indicates a possible user action. You can easily use it, if you have a pointing device like a mouse, but a button can trigger the most complex action inside a computational system and is better to thing well where and when to put these.<\/p>\n<h2>1. The tools<\/h2>\n<ul>\n<li>Java JDK 8<\/li>\n<li>Latest Eclipse Mars<\/li>\n<li>Vaadin 7.6.4<\/li>\n<li>Tomcat Server 8<\/li>\n<\/ul>\n<h2>2. Introduction<\/h2>\n<p>In this example I am going to show you how yo use the Vaadin button, the <code>Button<\/code> class is simple and straightforward, you create your button, place it on the UI and associate a click event to it, thats it!. Vaadin is a server side framework and traditional client side events like mouseover and mouseout event listeners create too much overhead just because every action performed have to reach the server, if you need additional functionality you can use a plugin or implement it for yourself.<\/p>\n<h2>3. Prerequisites<\/h2>\n<ul>\n<li>JDK installed<\/li>\n<li>Eclipse Mars installed and working<\/li>\n<li>Vaadin 7.6.4 plugin installed<\/li>\n<li>Tomcat 8 installed and running<\/li>\n<\/ul>\n<h2>4. Set up the project<\/h2>\n<p>In the file menu choose File -&gt; New -&gt; Other<\/p>\n<p><figure id=\"attachment_34378\" aria-describedby=\"caption-attachment-34378\" style=\"width: 646px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/01-New-Project-1.png\" rel=\"attachment wp-att-34378\"><img decoding=\"async\" class=\"size-full wp-image-34378\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/01-New-Project-1.png\" alt=\"01 New Project\" width=\"646\" height=\"422\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/01-New-Project-1.png 646w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/01-New-Project-1-300x196.png 300w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><\/a><figcaption id=\"caption-attachment-34378\" class=\"wp-caption-text\">01 New Project<\/figcaption><\/figure><\/p>\n<p>Now from the list choose Vaadin 7 project<\/p>\n<p><figure id=\"attachment_34379\" aria-describedby=\"caption-attachment-34379\" style=\"width: 524px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/02-Vaadin-Project-1.png\" rel=\"attachment wp-att-34379\"><img decoding=\"async\" class=\"size-full wp-image-34379\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/02-Vaadin-Project-1.png\" alt=\"02 Vaadin Project\" width=\"524\" height=\"499\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/02-Vaadin-Project-1.png 524w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/02\/02-Vaadin-Project-1-300x286.png 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/a><figcaption id=\"caption-attachment-34379\" class=\"wp-caption-text\">02 Vaadin Project<\/figcaption><\/figure><\/p>\n<p>Hit next and name your project then hit finish.<\/p>\n<h2>5. Coding the example<\/h2>\n<h3>5.1 The layout<\/h3>\n<p><span style=\"text-decoration: underline;\"><em>Layout<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tfinal VerticalLayout layout = new VerticalLayout();\n\t\tlayout.setWidth(\"100%\");\n\t\tlayout.setMargin(true);\n\t\tsetContent(layout);\n\t\t\n\t\tGridLayout gridLayout = new GridLayout(3 ,6);\n\t\tgridLayout.setSpacing(true);\n<\/pre>\n<p>A <code>VerticalLayout<\/code> is the main layout and inside of it I put a <code>GridLayout<\/code> to put the ui widgets, its a nested layout.<\/p>\n<h3>5.2 Information label<\/h3>\n<p><span style=\"text-decoration: underline;\"><em>Information Label<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tLabel myLabel = new Label(\"No clicks yet...\");\n\t\tmyLabel.setCaption(\"Current Button\");\n\t\tmyLabel.addStyleName(\"h1\");\n\t\tmyLabel.addStyleName(\"mylabelstyle\");\n\t\tmyLabel.setWidth(\"100%\");\n<\/pre>\n<p>I create a Label to show what button is clicked, I put on it some styles to change its look and feel, the <code>h1<\/code> style is like a H1 html tag and is premade in Vaadin.<\/p>\n<h4>5.2.1 Label Style<\/h4>\n<p>I created <code>mylabelstyle<\/code>, if your project is named <code>VaadinButton<\/code> then to create the style, open the file VaadinButton-&gt;WebContent-&gt;VAADIN-&gt;themes-&gt;vaadinbutton-&gt;vaadinbutton.scss<\/p>\n<p><figure id=\"attachment_35895\" aria-describedby=\"caption-attachment-35895\" style=\"width: 324px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/03-Edit-Styles.png\" rel=\"attachment wp-att-35895\"><img decoding=\"async\" class=\"size-full wp-image-35895\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/03-Edit-Styles.png\" alt=\"03 Edit Styles\" width=\"324\" height=\"458\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/03-Edit-Styles.png 324w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/03-Edit-Styles-212x300.png 212w\" sizes=\"(max-width: 324px) 100vw, 324px\" \/><\/a><figcaption id=\"caption-attachment-35895\" class=\"wp-caption-text\">03 Edit Styles<\/figcaption><\/figure><\/p>\n<p>and add the following styles:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>v-label-mylabelstyle<\/em><\/span><\/p>\n<pre class=\"brush:bash\">.v-label-mylabelstyle {\n    color: white;\n    text-align: center;\n    background-color: black;\t\n    border-color: white;\n    font-weight: bold;\n}\n<\/pre>\n<p>This change the color of the text to white, the background to black, center the text, make the font bold and the borders of the label white.<\/p>\n<h3>5.3 Button.ClickListener<\/h3>\n<p><span style=\"text-decoration: underline;\"><em>Button.ClickListener<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton.ClickListener myClickListener = new Button.ClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tString btCaption = event.getButton().getCaption();\n\t\t\t\tmyLabel.setValue(btCaption + \" clicked\");\n\t\t\t}\n\t\t};\n<\/pre>\n<p>I created a single click listener for all the buttons in the page, I get the button that fired the event with <code>event.getButton()<\/code> and then get the Caption to change the value of the label and show what button is firing the event.<\/p>\n<h3>5.4 Creating the buttons<\/h3>\n<h4>5.4.1 Tiny Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Tiny Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton tinyButton = new Button(\"Tiny Button\");\n\t\ttinyButton.addStyleName(\"tiny\");\n\t\ttinyButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A very little button, just little enough to read the text, for these situations when you need more space in the screen. The kind of button is changed using a predefined Vaadin style for buttons, in this case the style is <code>tinyButton.addStyleName(\"tiny\");<\/code>, I created the button then add the style, just add not replace and associate the generic button listener to it.<\/p>\n<h4>5.4.2 Small Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Small Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton smallButton = new Button(\"Small Button\");\n\t\tsmallButton.addStyleName(\"small\");\n\t\tsmallButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A button just a little more bigger than the tiny button the style name is <code>small<\/code><\/p>\n<h4>5.4.3 Normal Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Normal Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton normalButton = new Button(\"Normal Button\");\n\t\tnormalButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>The normal predefined Vaading normal button, this is the button that Vaadin uses when you didn&#8217;t specify any styles, is the next in size after the small button.<\/p>\n<h4>5.4.4 Large Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Large Button<\/em><\/span><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">\t\tButton largeButton = new Button(\"Large Button\");\n\t\tlargeButton.addStyleName(\"large\");\n\t\tlargeButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A large button a little bigger than the normal button, the style is <code>large<\/code>.<\/p>\n<h4>5.4.5 Huge Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Huge Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton hugeButton = new Button(\"Huge Button\");\n\t\thugeButton.addStyleName(\"huge\");\n\t\thugeButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>The huge button is for these situation when you need to say &#8220;here is a button&#8221;, is the biggest premaded button and the style used is <code>huge<\/code>.<\/p>\n<h4>5.4.6 Disabled Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Disabled Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton disabledButton = new Button(\"Disabled Button\");\n\t\tdisabledButton.setDescription(\"This button cannot be clicked\");\n\t\tdisabledButton.setEnabled(false);\n\n<\/pre>\n<p>When you need to prevent that the user click on a button then you disable it, in this case no style is used and you can enable\/disable a button with the method <code>setEnabled()<\/code>, using true to enable the button and false to disable it.<\/p>\n<h4>5.4.7 Danger Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Danger Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton dangerButton = new Button(\"Danger Button\");\n\t\tdangerButton.addStyleName(\"danger\");\n\t\tdangerButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>The danger button is used when the intended action is important or potentially dangerous, is a red button and red means danger so use it when you are going to perform important tasks with a button click, to prevent the user that the action need special attention. the style <code>danger<\/code> is used in this case.<\/p>\n<h4>5.4.8 Friendly Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Friendly Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton friendlyButton = new Button(\"Friendly Button\");\n\t\tfriendlyButton.addStyleName(\"friendly\");\n\t\tfriendlyButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A green button when you need to give some color to a button to get the user attention in this case green means a friendly action that can be performed without any risks, <code>friendly<\/code> is the style used.<\/p>\n<h4>5.4.9 Primary Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Primary Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton primaryButton = new Button(\"Primary Button\");\n\t\tprimaryButton.addStyleName(\"primary\");\n\t\tprimaryButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>The primary button generally is the default button an a page, the button that gets the focus when you press enter in your keyboard, <code>primary<\/code> style is used.<\/p>\n<h4>5.4.10 Native Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Native Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tNativeButton nativeButton = new NativeButton(\"Native Button\");\n\t\tnativeButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>The native button get the look and feel from the host machine running your application, in Windows you get Windows native buttons, in OSX you get OSx native buttons, in Linux you get GTK, KDE, &#8230; native buttons and so on. The native button have its own class and to create it you need to use instances of the <code>NativeButton<\/code> class.<\/p>\n<h4>5.4.11 Icon Right Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Icon Right Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton iconRightButton = new Button(\"Icon Align Right Button\");\n\t\ticonRightButton.setIcon(FontAwesome.ALIGN_RIGHT);\n\t\ticonRightButton.setWidth(\"250px\");\n\t\ticonRightButton.addStyleName(\"icon-align-right\");\n\t\ticonRightButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>You can add an icon to your button with the <code>setIcon<\/code> method, in this case I am using a FontAwesome icon, tho show the icon to the right the style <code>icon-align-right<\/code> is used.<\/p>\n<h4>5.4.12 Icon Left Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Icon Left Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton iconLeftButton = new Button(\"Icon Align Left Button\");\n\t\ticonLeftButton.setIcon(FontAwesome.ALIGN_LEFT);\n\t\ticonLeftButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>By default the icon is added to the left of the button so there is no need to add any extra style, just add the icon to the button and its added to the left of the text.<\/p>\n<h4>5.4.13 Icon Top Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Icon Top Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton iconTopButton = new Button(\"Icon Align Top Button\");\n\t\ticonTopButton.setIcon(FontAwesome.STAR);\n\t\ticonTopButton.addStyleName(\"icon-align-top\");\n\t\ticonTopButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>When you need an icon on top of the text, the style used is <code>icon-align-top<\/code><\/p>\n<h4>5.4.14 Border less Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Border less Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton borderlessButton = new Button(\"BorderLess Button\");\n\t\tborderlessButton.addStyleName(\"borderless\");\n\t\tborderlessButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A button without borders in those cases when you need to have a cleaner screen, it shows the borders when you click it, the style used is <code>borderless<\/code>.<\/p>\n<h4>5.4.15 Link Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Link Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton linkButton = new Button(\"Link Button\");\n\t\tlinkButton.addStyleName(\"link\");\n\t\tlinkButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A link button to simulate a traditional html link, the style used is <code>link<\/code>.<\/p>\n<h4>5.4.16 Quiet Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Quiet Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton quietButton = new Button(\"Quiet Button\");\n\t\tquietButton.addStyleName(\"quiet\");\n\t\tquietButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>A button that show its borders when you hover the mouse over it, <code>quiet<\/code> style is used in this case.<\/p>\n<h4>5.4.17 Custom Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Custom Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton customButton = new Button(\"Custom Button\");\n\t\tcustomButton.addStyleName(\"mystyle\");\n\t\tcustomButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>You can also create your own buttons with vaadin using styles, this button have the look and feel defined in the style <code>mystyle<\/code>, in the same file opened to make the label style, you define this style:[ulp id=&#8217;YBvYYzEYBUrADqmI&#8217;]<\/p>\n<p><span style=\"text-decoration: underline;\"><em>mystyle<\/em><\/span><\/p>\n<pre class=\"brush:bash\">.v-button-mystyle {\n    background-color: lightblue;\t\n    font-size: 12pt;\n    font-weight: bold;\n    color: red;\n    border-color: black;\n    border-radius: 0px;\n    border-width: 4px;\n    background-image: none;\t    \t\n}\n\n<\/pre>\n<p>The background color is lightblue, the font size is 12 pt and is a bold font of red color, I get rid of the border radius and the background image to get an square flat button, also increased the border to get an ugly retro button, In general I prefer to use Vaadin premade buttons that are made by designers and have a nice look an fill, but if you need more control in the application styles you can do it very easy.<\/p>\n<h4>5.4.18 Custom Image Button<\/h4>\n<p><span style=\"text-decoration: underline;\"><em>Custom Image Button<\/em><\/span><\/p>\n<pre class=\"brush:java\">\t\tButton customImageButton = new Button(\"Custom Image Button\");\n\t\tcustomImageButton.setIcon(new ThemeResource(\"images\/photo.png\"));\n\t\tcustomImageButton.addClickListener(myClickListener);\n\n<\/pre>\n<p>Also you can make your own images and use it in the Vaadin buttons, loading the resource with the theme resource and using the <code>setIcon<\/code> method, the image is inside the WebContent-&gt;VAADIN-&gt;themes-&gt;vaadinbutton-&gt;images folder.<\/p>\n<p><figure id=\"attachment_35904\" aria-describedby=\"caption-attachment-35904\" style=\"width: 328px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/04-Custom-Image.png\" rel=\"attachment wp-att-35904\"><img decoding=\"async\" class=\"size-full wp-image-35904\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/04-Custom-Image.png\" alt=\"04 Custom Image\" width=\"328\" height=\"488\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/04-Custom-Image.png 328w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/04-Custom-Image-202x300.png 202w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/a><figcaption id=\"caption-attachment-35904\" class=\"wp-caption-text\">04 Custom Image<\/figcaption><\/figure><\/p>\n<h2>6. The complete source code<\/h2>\n<p><span style=\"text-decoration: underline;\"><em>VaadinbuttonUI.java<\/em><\/span><\/p>\n<pre class=\"brush:java\">package com.example.vaadinbutton;\n\nimport javax.servlet.annotation.WebServlet;\n\nimport com.vaadin.annotations.Theme;\nimport com.vaadin.annotations.VaadinServletConfiguration;\nimport com.vaadin.server.FontAwesome;\nimport com.vaadin.server.ThemeResource;\nimport com.vaadin.server.VaadinRequest;\nimport com.vaadin.server.VaadinServlet;\nimport com.vaadin.ui.Button;\nimport com.vaadin.ui.Button.ClickEvent;\nimport com.vaadin.ui.GridLayout;\nimport com.vaadin.ui.Label;\nimport com.vaadin.ui.NativeButton;\nimport com.vaadin.ui.UI;\nimport com.vaadin.ui.VerticalLayout;\n\n@SuppressWarnings(\"serial\")\n@Theme(\"vaadinbutton\")\npublic class VaadinbuttonUI extends UI {\n\n\t@WebServlet(value = \"\/*\", asyncSupported = true)\n\t@VaadinServletConfiguration(productionMode = false, ui = VaadinbuttonUI.class)\n\tpublic static class Servlet extends VaadinServlet {\n\t}\n\n\t@Override\n\tprotected void init(VaadinRequest request) {\n\t\tfinal VerticalLayout layout = new VerticalLayout();\n\t\tlayout.setWidth(\"100%\");\n\t\tlayout.setMargin(true);\n\t\tsetContent(layout);\n\t\t\n\t\tGridLayout gridLayout = new GridLayout(3 ,6);\n\t\tgridLayout.setSpacing(true);\n\n\t\tLabel myLabel = new Label(\"No clicks yet...\");\n\t\tmyLabel.setCaption(\"Current Button\");\n\t\tmyLabel.addStyleName(\"h1\");\n\t\tmyLabel.addStyleName(\"mylabelstyle\");\n\t\tmyLabel.setWidth(\"100%\");\n\t\t\n\t\tButton.ClickListener myClickListener = new Button.ClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tString btCaption = event.getButton().getCaption();\n\t\t\t\tmyLabel.setValue(btCaption + \" clicked\");\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tButton tinyButton = new Button(\"Tiny Button\");\n\t\ttinyButton.addStyleName(\"tiny\");\n\t\ttinyButton.addClickListener(myClickListener);\n\t\t\n\t\tButton smallButton = new Button(\"Small Button\");\n\t\tsmallButton.addStyleName(\"small\");\n\t\tsmallButton.addClickListener(myClickListener);\n\n\t\tButton normalButton = new Button(\"Normal Button\");\n\t\tnormalButton.addClickListener(myClickListener);\n\n\t\tButton largeButton = new Button(\"Large Button\");\n\t\tlargeButton.addStyleName(\"large\");\n\t\tlargeButton.addClickListener(myClickListener);\n\n\t\tButton hugeButton = new Button(\"Huge Button\");\n\t\thugeButton.addStyleName(\"huge\");\n\t\thugeButton.addClickListener(myClickListener);\n\n\t\tButton disabledButton = new Button(\"Disabled Button\");\n\t\tdisabledButton.setDescription(\"This button cannot be clicked\");\n\t\tdisabledButton.setEnabled(false);\n\n\t\tButton dangerButton = new Button(\"Danger Button\");\n\t\tdangerButton.addStyleName(\"danger\");\n\t\tdangerButton.addClickListener(myClickListener);\n\n\t\tButton friendlyButton = new Button(\"Friendly Button\");\n\t\tfriendlyButton.addStyleName(\"friendly\");\n\t\tfriendlyButton.addClickListener(myClickListener);\n\n\t\tButton primaryButton = new Button(\"Primary Button\");\n\t\tprimaryButton.addStyleName(\"primary\");\n\t\tprimaryButton.addClickListener(myClickListener);\n\n\t\tNativeButton nativeButton = new NativeButton(\"Native Button\");\n\t\tnativeButton.addClickListener(myClickListener);\n\n\t\tButton iconRightButton = new Button(\"Icon Align Right Button\");\n\t\ticonRightButton.setIcon(FontAwesome.ALIGN_RIGHT);\n\t\ticonRightButton.setWidth(\"250px\");\n\t\ticonRightButton.addStyleName(\"icon-align-right\");\n\t\ticonRightButton.addClickListener(myClickListener);\n\t\t\n\t\tButton iconLeftButton = new Button(\"Icon Align Left Button\");\n\t\ticonLeftButton.setIcon(FontAwesome.ALIGN_LEFT);\n\t\ticonLeftButton.addClickListener(myClickListener);\n\t\t\n\t\tButton iconTopButton = new Button(\"Icon Align Top Button\");\n\t\ticonTopButton.setIcon(FontAwesome.STAR);\n\t\ticonTopButton.addStyleName(\"icon-align-top\");\n\t\ticonTopButton.addClickListener(myClickListener);\n\n\t\tButton borderlessButton = new Button(\"BorderLess Button\");\n\t\tborderlessButton.addStyleName(\"borderless\");\n\t\tborderlessButton.addClickListener(myClickListener);\n\n\t\tButton linkButton = new Button(\"Link Button\");\n\t\tlinkButton.addStyleName(\"link\");\n\t\tlinkButton.addClickListener(myClickListener);\n\n\t\tButton quietButton = new Button(\"Quiet Button\");\n\t\tquietButton.addStyleName(\"quiet\");\n\t\tquietButton.addClickListener(myClickListener);\n\n\t\tButton customButton = new Button(\"Custom Button\");\n\t\tcustomButton.addStyleName(\"mystyle\");\n\t\tcustomButton.addClickListener(myClickListener);\n\t\t\n\t\tButton customImageButton = new Button(\"Custom Image Button\");\n\t\tcustomImageButton.setIcon(new ThemeResource(\"images\/photo.png\"));\n\t\tcustomImageButton.addClickListener(myClickListener);\n\t\t\n\t\tgridLayout.addComponent(myLabel, 0, 0, 2, 0);\n\t\tgridLayout.addComponent(tinyButton);\n\t\tgridLayout.addComponent(smallButton);\n\t\tgridLayout.addComponent(normalButton);\n\t\tgridLayout.addComponent(largeButton);\n\t\tgridLayout.addComponent(hugeButton);\n\t\tgridLayout.addComponent(dangerButton);\n\t\tgridLayout.addComponent(friendlyButton);\n\t\tgridLayout.addComponent(primaryButton);\n\t\tgridLayout.addComponent(disabledButton);\n\t\tgridLayout.addComponent(nativeButton);\n\t\tgridLayout.addComponent(iconRightButton);\n\t\tgridLayout.addComponent(iconLeftButton);\n\t\tgridLayout.addComponent(iconTopButton);\n\t\tgridLayout.addComponent(borderlessButton);\n\t\tgridLayout.addComponent(linkButton);\n\t\tgridLayout.addComponent(quietButton);\n\t\tgridLayout.addComponent(customButton);\n\t\tgridLayout.addComponent(customImageButton);\n\t\tlayout.addComponent(gridLayout);\n\t\t\n\t}\n\n}\n<\/pre>\n<p><span style=\"text-decoration: underline;\"><em>vaadinbutton.scss<\/em><\/span><\/p>\n<pre class=\"brush:java\">@import \"..\/valo\/valo.scss\";\n\n@mixin vaadinbutton {\n  @include valo;\n\n  \/\/ Insert your own theme rules here\n\n.v-label-mylabelstyle {\n    color: white;\n    text-align: center;\n    background-color: black;\t\n    border-color: white;\n    font-weight: bold;\n}\n\n.v-button-mystyle {\n    background-color: lightblue;\t\n    font-size: 12pt;\n    font-weight: bold;\n    color: red;\n    border-color: black;\n\tborder-radius: 0px;\n\tborder-width: 4px;\n\tbackground-image: none;\t    \t\n}\n\n\n}\n<\/pre>\n<h2>7. Running the example<\/h2>\n<p>Right click on the project folder and choose Run as -&gt; Run on server choose Tomcat 8 server and hit finish.<\/p>\n<h2>8. Results<\/h2>\n<p>As you can see in the image Vaading have any button you ever need:<\/p>\n<p><figure id=\"attachment_35905\" aria-describedby=\"caption-attachment-35905\" style=\"width: 839px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/05-Results.png\" rel=\"attachment wp-att-35905\"><img decoding=\"async\" class=\"size-full wp-image-35905\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/05-Results.png\" alt=\"05 Results\" width=\"839\" height=\"608\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/05-Results.png 839w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/05-Results-300x217.png 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/05-Results-768x557.png 768w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/a><figcaption id=\"caption-attachment-35905\" class=\"wp-caption-text\">05 Results<\/figcaption><\/figure><\/p>\n<h2>9. Download the Source Code<\/h2>\n<p>This was an example of Vaadin Button.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the Eclipse project here:&nbsp;<strong><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/04\/VaadinButton.zip\">VaadinButton<\/a><br \/>\n<\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a button indicates a possible user action. You can easily use it, if you have a pointing device like a mouse, but a button can trigger the most &hellip;<\/p>\n","protected":false},"author":77,"featured_media":33079,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1358],"tags":[1265],"class_list":["post-35892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vaadin","tag-vaadin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Vaadin Button Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a\" \/>\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\/enterprise-java\/vaadin\/vaadin-button-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vaadin Button Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-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=\"2016-04-12T08:00:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-09T10:21:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jesus Boadas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jboadas\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jesus Boadas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 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\/enterprise-java\/vaadin\/vaadin-button-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/\"},\"author\":{\"name\":\"Jesus Boadas\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/506f9c2b38156c7f94bba77757206dd7\"},\"headline\":\"Vaadin Button Example\",\"datePublished\":\"2016-04-12T08:00:11+00:00\",\"dateModified\":\"2019-04-09T10:21:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/\"},\"wordCount\":1259,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg\",\"keywords\":[\"Vaadin\"],\"articleSection\":[\"Vaadin\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/\",\"name\":\"Vaadin Button Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg\",\"datePublished\":\"2016-04-12T08:00:11+00:00\",\"dateModified\":\"2019-04-09T10:21:11+00:00\",\"description\":\"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-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\":\"Enterprise Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Vaadin\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/vaadin\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Vaadin Button 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\/506f9c2b38156c7f94bba77757206dd7\",\"name\":\"Jesus Boadas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/10\/Jesus-Boadas_avatar_1476120926-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/10\/Jesus-Boadas_avatar_1476120926-96x96.jpg\",\"caption\":\"Jesus Boadas\"},\"description\":\"I'm a self taught programmer, I began programming back in 1991 using an IBM A10 mainframe with Pascal an Assembler IBM 360\/70 emulator and Turbo C on a X86 PC, since that I work for the banking industry with emerging technologies like Fox Pro, Visual Fox Pro, Visual Basic, Visual C++, Borland C++, lately I moved out to the Airline industry, leading designing and programming in-house web applications with Flex, Actionscript, PHP, Python and Rails and in the last 7 years I focused all my work in Java, working on Linux servers using GlassFish, TomCat, Apache and MySql.\",\"sameAs\":[\"http:\/\/www.javacodegeeks.com\/\",\"https:\/\/ve.linkedin.com\/in\/jesus-boadas\",\"https:\/\/x.com\/jboadas\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/jesus-boadas\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vaadin Button Example - Java Code Geeks","description":"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a","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\/enterprise-java\/vaadin\/vaadin-button-example\/","og_locale":"en_US","og_type":"article","og_title":"Vaadin Button Example - Java Code Geeks","og_description":"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a","og_url":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-04-12T08:00:11+00:00","article_modified_time":"2019-04-09T10:21:11+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg","type":"image\/jpeg"}],"author":"Jesus Boadas","twitter_card":"summary_large_image","twitter_creator":"@jboadas","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Jesus Boadas","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/"},"author":{"name":"Jesus Boadas","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/506f9c2b38156c7f94bba77757206dd7"},"headline":"Vaadin Button Example","datePublished":"2016-04-12T08:00:11+00:00","dateModified":"2019-04-09T10:21:11+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/"},"wordCount":1259,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg","keywords":["Vaadin"],"articleSection":["Vaadin"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/","url":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/","name":"Vaadin Button Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg","datePublished":"2016-04-12T08:00:11+00:00","dateModified":"2019-04-09T10:21:11+00:00","description":"A button is a graphical element that provides the user a way to trigger an event. The appearance and behavior of buttons is similar across platforms and a","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/01\/vaadin-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/enterprise-java\/vaadin\/vaadin-button-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":"Enterprise Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/"},{"@type":"ListItem","position":4,"name":"Vaadin","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/vaadin\/"},{"@type":"ListItem","position":5,"name":"Vaadin Button 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\/506f9c2b38156c7f94bba77757206dd7","name":"Jesus Boadas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/10\/Jesus-Boadas_avatar_1476120926-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/10\/Jesus-Boadas_avatar_1476120926-96x96.jpg","caption":"Jesus Boadas"},"description":"I'm a self taught programmer, I began programming back in 1991 using an IBM A10 mainframe with Pascal an Assembler IBM 360\/70 emulator and Turbo C on a X86 PC, since that I work for the banking industry with emerging technologies like Fox Pro, Visual Fox Pro, Visual Basic, Visual C++, Borland C++, lately I moved out to the Airline industry, leading designing and programming in-house web applications with Flex, Actionscript, PHP, Python and Rails and in the last 7 years I focused all my work in Java, working on Linux servers using GlassFish, TomCat, Apache and MySql.","sameAs":["http:\/\/www.javacodegeeks.com\/","https:\/\/ve.linkedin.com\/in\/jesus-boadas","https:\/\/x.com\/jboadas"],"url":"https:\/\/examples.javacodegeeks.com\/author\/jesus-boadas\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/35892","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\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=35892"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/35892\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/33079"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=35892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=35892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=35892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}