{"id":2391,"date":"2014-01-26T00:53:36","date_gmt":"2014-01-25T23:53:36","guid":{"rendered":"https:\/\/blog.hani-ibrahim.de\/?p=2391"},"modified":"2020-10-07T18:30:45","modified_gmt":"2020-10-07T17:30:45","slug":"url-in-netbeans-jdialog","status":"publish","type":"post","link":"https:\/\/blog.hani-ibrahim.de\/en\/url-in-netbeans-jdialog.html","title":{"rendered":"Link in Netbeans&#8217; JDialog"},"content":{"rendered":"<nav class=\"tinytoc tiny_toc\">\n<ul>\n<li><a href=\"#h0\">Creation of JDialog and JLabel<\/a><\/li>\n<li><a href=\"#h1\">Configure Jlabel<\/a><\/li>\n<li><a href=\"#h2\">Add Events<\/a><\/li>\n<li><a href=\"#h3\">Improve userexperience<\/a><\/li>\n<li><a href=\"#h4\">Run project<\/a><\/li>\n<li><a href=\"#h5\">Embed a JDialog in an existing project<\/a><\/li>\n<li><a href=\"#h6\">Download<\/a><\/li>\n<\/ul>\n<\/nav>\n\n\r\n<body><p>It is often desired to add a link on a JDialog. E.g. for the application homepage or for a service e-mail.<\/p>\n<p>Unfortunately it is not as easy as expected because Java\u2019s Swing does not have a link component or similar at all. But it is possible to configure a JLabel to behaves as a link.<\/p>\n<p>This tutorial shows Java novices how to make a link from a Swing JLabel component in Netbeans using the GUI-Buider Matisse.<\/p>\n<p><!--more--><\/p>\n<h3 id=\"h0\">Creation of JDialog and JLabel<\/h3>\n<p>Create a new <em>Java Application<\/em> project:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link01.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link01-300x206.png\" alt=\"Netbeans - Java Application ausw\u00e4hlen\" width=\"300\" height=\"206\"><\/a><\/p>\n<p>Create a new JDialog: \u201cFile| New\u2026\u201d, in \u201cCategories | Swing GUI Forms\u201d choose <em>JDialog Form<\/em>. I called the JDialog class <em>LinkDialog<\/em>:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link02.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link02-300x206.png\" alt=\"etbeans - JDialog ausw\u00e4hlern\" width=\"300\" height=\"206\"><\/a><\/p>\n<p>In the View <em>Design<\/em> drag the JLabel component from the panel <em>Palette<\/em> of the area <em>Swing Controls<\/em> and drop it on the grey area of JDialog:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link03.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link03-300x223.png\" alt=\"Netbeans - JLabel auf JDialog ziehen\" width=\"300\" height=\"223\"><\/a><\/p>\n<h3 id=\"h1\">Configure Jlabel<\/h3>\n<p>Set the focus to the JLabel by clicking on it on the design view or in the Navigator panel on the lower left side. Eight drag points appear around the component which show you that you succeeded.<\/p>\n<p>Than go right to the panel <em>Properties<\/em> an click on the button with the same name. In the table look for the entry <em>text<\/em> and click on the small button with tree dots of the same line:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link04.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link04-300x223.png\" alt=\"Netbeans - JLabel-Text \u00e4ndern\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>Enter the following HTML code in the appearing dialog box:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link05.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2458\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link05-300x194.png\" alt=\"Netbeans - HTML f\u00fcr Link\" width=\"300\" height=\"194\" srcset=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link05-300x194.png 300w, https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link05.png 551w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p>You can enter whatever you want instead of \u201cHomepage\u201d. This text appears in blue color and underlined. The appropriate URI will specified in the code later:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link06.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link06-300x223.png\" alt=\"etbeans - JLabel-Text fertig\" width=\"300\" height=\"223\"><\/a><\/p>\n<h3 id=\"h2\">Add Events<\/h3>\n<p>In the design view go to the right to the panel <em>Properties<\/em> and click on the button <em>Events<\/em>. Scroll down to the entry <em>mouseClicked<\/em>.\u00a0 Click on the small triangle on the right end and choose the first and only entry:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link07.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2456\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link07-300x223.png\" alt=\"Netbeans - Events\" width=\"300\" height=\"223\" srcset=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link07-300x223.png 300w, https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link07.png 810w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p>Hereafter Netbeans jumps directly in the source view to the location where you have to implement the event listener. Enter the line:<\/p>\n<pre lang=\"java\">openURI(uri);<\/pre>\n<p>in the listener. The red exclamation mark shows that you have to implement the specified method <em>openURI()<\/em>.<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link08.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link08-300x223.png\" alt=\"\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>We could implement the needed function right here but swapping out the function as a method gives you the opportunity to reuse it easily, e.g. for multiple Web-addresses or for an additional e-Mail address.<\/p>\n<p>Now we implement the method <em>openURI()<\/em>. Put the code below in your class:<\/p>\n<pre lang=\"java\">private static void openURI(URI uri) {\r\n    if (Desktop.isDesktopSupported()) {\r\n        try {\r\n            Desktop.getDesktop().browse(uri);\r\n        } catch (IOException e) { System.err.println(e.toString()); }\r\n    } else { \r\n        System.err.println(\"ERROR: 'Desktop.isDesktopSupported()' is 'FALSE'\"); \r\n    }\r\n}<\/pre>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link09.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link09-300x223.png\" alt=\"\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>The yellow bulbs with the red exclamation marks on the left points you to missing imports of external classes. Click on the symbols and choose \u201cAdd import for [\u2026]\u201d.<\/p>\n<p>Additionally you have to specify the variable <em>uri<\/em>. That can be done as a class variable. Enter<\/p>\n<pre lang=\"java\">URI uri;<\/pre>\n<p>after the main class:<\/p>\n<p class=\"codestyle\">public class LinkDialog extends javax.swing.JDialog {<\/p>\n<p>and before the constructor<\/p>\n<p class=\"codestyle\">public LinkDialog(java.awt.Frame parent, boolean modal) {<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link11.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link11-300x223.png\" alt=\"\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>Add the missing imports as before:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link10.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link10-300x96.png\" alt=\"\" width=\"300\" height=\"96\"><\/a><\/p>\n<p>You have to specify the URI itself now. You can do it in the constructor between <span class=\"codestyle\">super()<\/span> and<span class=\"codestyle\"> initComponents<\/span><\/p>\n<pre lang=\"java\">try {\r\n\u00a0\u00a0\u00a0 uri = new URI(\"https:\/\/netbeans.org\/\");\r\n} catch (URISyntaxException ex) {\r\n\u00a0\u00a0\u00a0 System.err.println(ex.toString);\r\n}<\/pre>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link12.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link12-300x223.png\" alt=\"nb-link12\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>Instead of <span class=\"codestyle\">https:\/\/netbeans.org\/<\/span> you can type any web address you like. If you want to use a e-mail add <span class=\"codestyle\">mailto:<\/span> preceeding to your address, e.g. <span class=\"codestyle\">mailto:mymail@me.com<\/span>.<\/p>\n<p>Now you are ready. But \u2026.<\/p>\n<h3 id=\"h3\">Improve userexperience<\/h3>\n<p>Users expect that the mouse cursor changes the shape when it is hovered above a link. To fulfill this expectation you have to go to the view <em>Design<\/em> and then to panel <em>Properties<\/em>:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link13.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link13-300x223.png\" alt=\"Screenshot Netbeans\" width=\"300\" height=\"223\"><\/a><\/p>\n<p>Above, click on <em>Events<\/em> and scroll down to <em>mouseEntered<\/em>. Click on the triangle on the right and choose the entry. There is only one. Hereafter Netbeans jumps back to the source view and to the location of the currently created listener. Fill in the following code to change the shape of the mouse cursor to a hand with a stretched finger:<\/p>\n<pre lang=\"java\">setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));<\/pre>\n<p>Of course the user expects that the mouse cursor reverses the shape after hovering, you have to go back to design view and add a new event <em>mouseExited<\/em> as you did before with <em>mouseEntered<\/em>. Just the code is slightly different:<\/p>\n<pre lang=\"java\">setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));<\/pre>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link16.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2447\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link16-300x223.png\" alt=\"Netbeans Screenshoot\" width=\"300\" height=\"223\" srcset=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link16-300x223.png 300w, https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link16.png 810w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<h3 id=\"h4\">Run project<\/h3>\n<p>Now you are ready and you can start the project by pressing the key F6. Acknowledge the question of the main class if necessary:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link14.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link14-300x195.png\" alt=\"etbeans - Main Class w\u00e4hlen\" width=\"300\" height=\"195\"><\/a><\/p>\n<p>And try out your self coded link in a JDialog:<\/p>\n<p><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link15.png\" data-rel=\"lightbox-gallery-CyHuW94X\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/nb-link15.png\" alt=\"etbeans - Fertiger Link auf JDialog\" width=\"297\" height=\"177\"><\/a><\/p>\n<h3 id=\"h5\">Embed a JDialog in an existing project<\/h3>\n<p>Refer my tutorrial <a title=\"JDialog in Netbeans\" href=\"https:\/\/blog.hani-ibrahim.de\/jdialog-in-netbeans.html\">JDialog in Netbeans<\/a> if you need help.<\/p>\n<h3 id=\"h6\">Download<\/h3>\n<p>You find here the complete example as a zipped Netbeans project.<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.hani-ibrahim.de\/wp-content\/uploads\/LinkDialog.zip\">LinkDialog<\/a> als Netbeans-Projekt (ZIP)<\/li>\n<\/ul>\n<p>Import it by \u201cImport Project | From ZIP \u2026\u201d.<\/p>\n<p class=\"hinweis\"><strong>Note:<\/strong> The LinkDialog class is located in the standard package. That is bad stile but it makes the tutorial a bit shorter. Furthermore I took over the given variable names of the components, as<em> JLabel1<\/em>. It is better to give them reasonable names as <em>lbLink<\/em>.<\/p>\n<p><\/p><\/body>","protected":false},"excerpt":{"rendered":"<div class=\"shariff shariff-align-flex-start shariff-widget-align-flex-start\" data-services=\"facebook\" data-url=\"https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html\" data-timestamp=\"1602095445\" data-backendurl=\"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/shariff\/v1\/share_counts?\"><ul class=\"shariff-buttons theme-round orientation-horizontal buttonsize-small\"><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8;border-radius:50%\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#3b5998; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span data-service=\"facebook\" style=\"color:#3b5998\" class=\"shariff-count shariff-hidezero\"><\/span>&nbsp;<\/a><\/li><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959;border-radius:50%\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html&text=Link%20in%20Netbeans%E2%80%99%20JDialog\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button pocket shariff-nocustomcolor\" style=\"background-color:#444;border-radius:50%\"><a href=\"https:\/\/getpocket.com\/save?url=https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html&title=Link%20in%20Netbeans%E2%80%99%20JDialog\" title=\"Save to Pocket\" aria-label=\"Save to Pocket\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#ff0000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 28\"><path fill=\"#ff0000\" d=\"M24.5 2q1 0 1.7 0.7t0.7 1.7v8.1q0 2.8-1.1 5.3t-2.9 4.3-4.3 2.9-5.2 1.1q-2.7 0-5.2-1.1t-4.3-2.9-2.9-4.3-1.1-5.2v-8.1q0-1 0.7-1.7t1.7-0.7h22zM13.5 18.6q0.7 0 1.3-0.5l6.3-6.1q0.6-0.5 0.6-1.3 0-0.8-0.5-1.3t-1.3-0.5q-0.7 0-1.3 0.5l-5 4.8-5-4.8q-0.5-0.5-1.3-0.5-0.8 0-1.3 0.5t-0.5 1.3q0 0.8 0.6 1.3l6.3 6.1q0.5 0.5 1.3 0.5z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button rss shariff-nocustomcolor\" style=\"background-color:#ff8c00;border-radius:50%\"><a href=\"https:\/\/blog.hani-ibrahim.de\/en\/feed\/rss\" title=\"RSS feed\" aria-label=\"RSS feed\" role=\"button\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#fe9312; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fe9312\" d=\"M4.3 23.5c-2.3 0-4.3 1.9-4.3 4.3 0 2.3 1.9 4.2 4.3 4.2 2.4 0 4.3-1.9 4.3-4.2 0-2.3-1.9-4.3-4.3-4.3zM0 10.9v6.1c4 0 7.7 1.6 10.6 4.4 2.8 2.8 4.4 6.6 4.4 10.6h6.2c0-11.7-9.5-21.1-21.1-21.1zM0 0v6.1c14.2 0 25.8 11.6 25.8 25.9h6.2c0-17.6-14.4-32-32-32z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button mailto shariff-nocustomcolor\" style=\"background-color:#a8a8a8;border-radius:50%\"><a href=\"mailto:?body=https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html&subject=Link%20in%20Netbeans%E2%80%99%20JDialog\" title=\"Send by email\" aria-label=\"Send by email\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#999\" d=\"M32 12.7v14.2q0 1.2-0.8 2t-2 0.9h-26.3q-1.2 0-2-0.9t-0.8-2v-14.2q0.8 0.9 1.8 1.6 6.5 4.4 8.9 6.1 1 0.8 1.6 1.2t1.7 0.9 2 0.4h0.1q0.9 0 2-0.4t1.7-0.9 1.6-1.2q3-2.2 8.9-6.1 1-0.7 1.8-1.6zM32 7.4q0 1.4-0.9 2.7t-2.2 2.2q-6.7 4.7-8.4 5.8-0.2 0.1-0.7 0.5t-1 0.7-0.9 0.6-1.1 0.5-0.9 0.2h-0.1q-0.4 0-0.9-0.2t-1.1-0.5-0.9-0.6-1-0.7-0.7-0.5q-1.6-1.1-4.7-3.2t-3.6-2.6q-1.1-0.7-2.1-2t-1-2.5q0-1.4 0.7-2.3t2.1-0.9h26.3q1.2 0 2 0.8t0.9 2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button whatsapp shariff-nocustomcolor\" style=\"background-color:#5cbe4a;border-radius:50%\"><a href=\"https:\/\/api.whatsapp.com\/send?text=https%3A%2F%2Fblog.hani-ibrahim.de%2Fen%2Furl-in-netbeans-jdialog.html%20Link%20in%20Netbeans%E2%80%99%20JDialog\" title=\"Share on Whatsapp\" aria-label=\"Share on Whatsapp\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\";border-radius:50%; background-color:#34af23; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#34af23\" d=\"M17.6 17.4q0.2 0 1.7 0.8t1.6 0.9q0 0.1 0 0.3 0 0.6-0.3 1.4-0.3 0.7-1.3 1.2t-1.8 0.5q-1 0-3.4-1.1-1.7-0.8-3-2.1t-2.6-3.3q-1.3-1.9-1.3-3.5v-0.1q0.1-1.6 1.3-2.8 0.4-0.4 0.9-0.4 0.1 0 0.3 0t0.3 0q0.3 0 0.5 0.1t0.3 0.5q0.1 0.4 0.6 1.6t0.4 1.3q0 0.4-0.6 1t-0.6 0.8q0 0.1 0.1 0.3 0.6 1.3 1.8 2.4 1 0.9 2.7 1.8 0.2 0.1 0.4 0.1 0.3 0 1-0.9t0.9-0.9zM14 26.9q2.3 0 4.3-0.9t3.6-2.4 2.4-3.6 0.9-4.3-0.9-4.3-2.4-3.6-3.6-2.4-4.3-0.9-4.3 0.9-3.6 2.4-2.4 3.6-0.9 4.3q0 3.6 2.1 6.6l-1.4 4.2 4.3-1.4q2.8 1.9 6.2 1.9zM14 2.2q2.7 0 5.2 1.1t4.3 2.9 2.9 4.3 1.1 5.2-1.1 5.2-2.9 4.3-4.3 2.9-5.2 1.1q-3.5 0-6.5-1.7l-7.4 2.4 2.4-7.2q-1.9-3.2-1.9-6.9 0-2.7 1.1-5.2t2.9-4.3 4.3-2.9 5.2-1.1z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button info shariff-nocustomcolor\" style=\"background-color:#eee;border-radius:50%\"><a href=\"http:\/\/ct.de\/-2467514\" title=\"More information\" aria-label=\"More information\" role=\"button\" rel=\"noopener \" class=\"shariff-link\" style=\";border-radius:50%; background-color:#fff; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 11 32\"><path fill=\"#999\" d=\"M11.4 24v2.3q0 0.5-0.3 0.8t-0.8 0.4h-9.1q-0.5 0-0.8-0.4t-0.4-0.8v-2.3q0-0.5 0.4-0.8t0.8-0.4h1.1v-6.8h-1.1q-0.5 0-0.8-0.4t-0.4-0.8v-2.3q0-0.5 0.4-0.8t0.8-0.4h6.8q0.5 0 0.8 0.4t0.4 0.8v10.3h1.1q0.5 0 0.8 0.4t0.3 0.8zM9.2 3.4v3.4q0 0.5-0.4 0.8t-0.8 0.4h-4.6q-0.4 0-0.8-0.4t-0.4-0.8v-3.4q0-0.4 0.4-0.8t0.8-0.4h4.6q0.5 0 0.8 0.4t0.4 0.8z\"\/><\/svg><\/span><\/a><\/li><\/ul><\/div><p>Sorry, this entry is only available in Deutsch.<\/p>\n","protected":false},"author":2,"featured_media":3500,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[24,25,45,63,67],"tags":[70,121,68,69],"class_list":["post-2391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-german","category-english","category-how-tos","category-java","category-programming","tag-gui","tag-java","tag-netbeans","tag-swing"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/posts\/2391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/comments?post=2391"}],"version-history":[{"count":25,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/posts\/2391\/revisions"}],"predecessor-version":[{"id":3475,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/posts\/2391\/revisions\/3475"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/media\/3500"}],"wp:attachment":[{"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/media?parent=2391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/categories?post=2391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hani-ibrahim.de\/en\/wp-json\/wp\/v2\/tags?post=2391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}