{"id":86947,"date":"2023-01-20T11:50:21","date_gmt":"2023-01-20T06:20:21","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=86947"},"modified":"2026-06-03T14:57:59","modified_gmt":"2026-06-03T09:27:59","slug":"java-currency-converter-project","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/","title":{"rendered":"How to Create Currency Converter Project in Java"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Java Currency Converter is a desktop application that converts one currency into another currency based on recent market prices. It is very useful for foreign exchange trade and multinational business. <\/span><\/p>\n<h3>About Currency Converter Project<\/h3>\n<p><span style=\"font-weight: 400;\">Users can convert the following Currencies:<\/span><\/p>\n<p>1. <b>From INR (Indian Rupee) to<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">United States Dollar<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Euro<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Canadian Dollar<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Japanese Yen<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Chinese Yen<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Bitcoin<\/span><\/li>\n<\/ul>\n<p><b>2. From USD (United States Dollar) to<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Indian Rupee<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Euro<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Canadian Dollar<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Japanese Yen<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Chinese Yuan<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Bitcoin<\/span><\/li>\n<\/ul>\n<p>There are many more options to convert from one currency to another<\/p>\n<h3>Project Prerequisites<\/h3>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Java should be installed on the machine<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">To build Currency Converter user should have basic knowledge of Java AWT (Abstract Window Toolkit) and Java Swing<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">IDE used: NetBeans 8.2<\/span><\/li>\n<\/ul>\n<h3>Download Java Currency Converter<\/h3>\n<p><span style=\"font-weight: 400;\">Please download the source code of java currency converter project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1VqpFHlwe0nZZUpcsNOGBFN8QKC9GuypO\/view?usp=drive_link\"><strong>Currency Converter Project<\/strong><\/a><\/span><\/p>\n<h3>Steps to Create Currency Converter\u2013 Java Project<\/h3>\n<p><b>1. Import packages<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In this step, we will import all the required AWT and Swing packages.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.awt.*;\r\nimport java.awt.event.*;\r\nimport javax.swing.*;\r\nimport javax.swing.event.*;\r\n<\/pre>\n<p><strong>2<\/strong>. <b>Creating User Interface<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Now, its time to design the Front user layout which will be accessed by the user for conversion.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We had to make use of several components such as Label, ComboBox, Button and TextField. In Netbeans, there is facility of drag and drop components and adding functionalities in easy way it will automatically generate the code as per the requirement selected by you.<\/span><\/p>\n<p><b>Function Definitions:<\/b><\/p>\n<ul>\n<li><b>setLayout() : <\/b><span style=\"font-weight: 400;\">This function lets you set the layout of the Frame used in the project.<\/span><\/li>\n<\/ul>\n<ul>\n<li><b>setBounds(x,y, width, height): <\/b><span style=\"font-weight: 400;\">This Function will let you set the dimensions of the components used in the project.<\/span><\/li>\n<li><b><\/b><b>setFont: <\/b><span style=\"font-weight: 400;\">This function will let you set the font of your choice to the UI screen to make it attractive.<\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">private void initComponents() {\r\n\r\n        title = new javax.swing.JLabel();\r\n        convert = new javax.swing.JButton();\r\n        jLabel1 = new javax.swing.JLabel();\r\n        convertFrom = new javax.swing.JLabel();\r\n        convertTo = new javax.swing.JLabel();\r\n        input = new javax.swing.JTextField();\r\n        choiceFrom = new javax.swing.JComboBox();\r\n        choiceTo = new javax.swing.JComboBox();\r\n        output = new javax.swing.JLabel();\r\n\r\n        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n        setBackground(new java.awt.Color(0, 0, 0));\r\n\r\n        title.setFont(new java.awt.Font(\"Times New Roman\", 1, 48)); \/\/ NOI18N\r\n        title.setText(\"Techvidvan - Currency Converter\");\r\n        title.setVerifyInputWhenFocusTarget(false);\r\n\r\n        convert.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        convert.setText(\"CONVERT\");\r\n        convert.addActionListener(new java.awt.event.ActionListener() {\r\n            public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n                convertActionPerformed(evt);\r\n            }\r\n        });\r\n\r\n        jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        jLabel1.setText(\"Enter Amount \");\r\n\r\n        convertFrom.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        convertFrom.setText(\"Convert From\");\r\n\r\n        convertTo.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        convertTo.setText(\"Convert To\");\r\n\r\n        input.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); \/\/ NOI18N\r\n        input.addActionListener(new java.awt.event.ActionListener() {\r\n            public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n                inputActionPerformed(evt);\r\n            }\r\n        });\r\n\r\n        choiceFrom.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        choiceFrom.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"INR\", \"USD\", \"EUR\", \"CAD\", \"JPY\", \"CNY\", \"BTC\" }));\r\n        choiceFrom.addItemListener(new java.awt.event.ItemListener() {\r\n            public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n                choiceFromItemStateChanged(evt);\r\n            }\r\n        });\r\n\r\n        choiceTo.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); \/\/ NOI18N\r\n        choiceTo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"INR\", \"USD\", \"EUR\", \"CAD\", \"JPY\", \"CNY\", \"BTC\" }));\r\n        choiceTo.addItemListener(new java.awt.event.ItemListener() {\r\n            public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n                choiceToItemStateChanged(evt);\r\n            }\r\n        });\r\n\r\n        output.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); \/\/ NOI18N\r\n        output.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n        output.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n<\/pre>\n<p>3. <b>Adding Listeners to the components<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Adding listeners to the components will return the action specified to it when the user selects the particular component.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">choiceFrom.addItemListener(this);\r\n        choiceTo.addItemListener(this);\r\n        convert.addActionListener(this);\r\n<\/pre>\n<p>4. <b>Overriding the Listeners<\/b><\/p>\n<p>There is always the need to override the listener which is being used.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/Adding Item Listener to Choice From ComboBox\r\nprivate void choiceFromItemStateChanged(java.awt.event.ItemEvent evt) { }                                                                      \r\n\r\n\/\/Adding Item Listener to Choice To ComboBox\r\nprivate void choiceToItemStateChanged(java.awt.event.ItemEvent evt) {}                      \r\n  \r\n\/\/Adding Action Listener to Convert Button\r\nprivate void convertActionPerformed(java.awt.event.ActionEvent evt) {                                        \r\n                Double total;\r\n        Double amount= Double.parseDouble(input.getText());\r\n\r\n\/\/Then add Functionalities in continuity\r\n<\/pre>\n<p>5. <b>Adding Functionalities<\/b><\/p>\n<ul>\n<li><b>Converting USD currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">switch (choiceFrom.getSelectedItem().toString()) {\r\n            case \"USD\":\r\n                \/\/INR\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"INR\":\r\n                        total=amount*82.743;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" INR\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*0.943;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*1.351;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*132.440;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*6.871;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" CNY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.0000594;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" USD = \"+total+\" USD\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting Indian Currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"INR\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*0.0120;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" USD\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*0.01139;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*0.0163;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*1.6012;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*0.083;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" CNY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.000000726;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" INR = \"+total+\" INR\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting EURO currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"EUR\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*1.06057;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" USD\");\r\n                        break;\r\n                    case \"INR\":\r\n                        total=amount*87.74738;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" INR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*1.4336;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*140.5083;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*7.2925;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" CNY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.0000630;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" EUR = \"+total+\" EUR\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting CAD currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"CAD\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*0.7397;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" USD\");\r\n                        break;\r\n                    case \"INR\":\r\n                        total=amount*61.2043;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" INR\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*0.6975;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*98.0054;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*5.0865;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" CNY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.0000439;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" CAD = \"+total+\" CAD\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting Japanese Currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"JPY\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*0.00754;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" USD\");\r\n                        break;\r\n                    case \"INR\":\r\n                        total=amount*0.6244;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" INR\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*0.00711;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*0.01020;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*0.051900;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" CNY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.0000000453;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" JPY = \"+total+\" JPY\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting Chinese Currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"CNY\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*0.1454;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" USD\");\r\n                        break;\r\n                    case \"INR\":\r\n                        total=amount*12.0325;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" INR\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*0.13712;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*0.19659;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*19.26750;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"BTC\":\r\n                        total=amount*0.000008646;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" BTC\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" CNY = \"+total+\" CNY\");\r\n                        break;\r\n                }\r\n                break;\r\n<\/pre>\n<ul>\n<li><b>Converting Bitcoin Currency<\/b><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">case \"BTC\":\r\n                \/\/USD\r\n                switch (choiceTo.getSelectedItem().toString()) {\r\n                    case \"USD\":\r\n                        total=amount*16820.845;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" USD\");\r\n                        break;\r\n                    case \"INR\":\r\n                        total=amount*1391685.7254;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" INR\");\r\n                        break;\r\n                    case \"EUR\":\r\n                        total=amount*15860.1393;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" EUR\");\r\n                        break;\r\n                    case \"CAD\":\r\n                        total=amount*22738.3511;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" CAD\");\r\n                        break;\r\n                    case \"JPY\":\r\n                        total=amount*2228482.3907;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" JPY\");\r\n                        break;\r\n                    case \"CNY\":\r\n                        total=amount*115660.1311;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" CNY\");\r\n                        break;\r\n                    default:\r\n                        total=amount*1;\r\n                        output.setText(input.getText()+\" BTC = \"+total+\" BTC\");\r\n                        break;\r\n                }\r\n                break;\r\n        }\r\n    }         \r\n<\/pre>\n<h3>Main Driver Code<\/h3>\n<p><span style=\"font-weight: 400;\">Adding functionalities like setting location, setting size and performing exit options on frame.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public static void main(String args[]) {\r\n        \r\n        java.awt.EventQueue.invokeLater(new Runnable() {\r\n            public void run() {\r\n                new CurrencyConverter().setVisible(true);\r\n            }\r\n        });\r\n    }\r\n\r\n<\/pre>\n<h3>Java Currency Converter Project Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/01\/java-currency-converter-project-output-scaled.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86949\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/01\/java-currency-converter-project-output-scaled.webp\" alt=\"java currency converter project output\" width=\"2560\" height=\"1822\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p><span style=\"font-weight: 400;\">Yayyy! We have finally built our Currency Converter in java. Now we can easily convert the currency from one type to another without the use of <a href=\"http:\/\/currencyapi.com\">currency exchange rates API<\/a>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">From this java project, we have learned how to use AWT &amp; Swing components such as Label, ComboBox, Text Field and Button, add new functionality to the frame and how to make use of Action Listener and Item Listener.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java Currency Converter is a desktop application that converts one currency into another currency based on recent market prices. It is very useful for foreign exchange trade and multinational business. About Currency Converter Project&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":86950,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[3520,4829,4830,4831,2753,4832],"class_list":["post-86947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-currency-converter","tag-java-currency-converter-project","tag-java-project","tag-java-project-for-beginners","tag-java-project-ideas","tag-java-project-with-source-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create Currency Converter Project in Java - TechVidvan<\/title>\n<meta name=\"description\" content=\"Create Currency Converter Java project using AWT, Swing components such as Label, ComboBox, Text Field and Button, and Action Listener &amp; Item Listener.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Currency Converter Project in Java - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Create Currency Converter Java project using AWT, Swing components such as Label, ComboBox, Text Field and Button, and Action Listener &amp; Item Listener.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-20T06:20:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:27:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Currency Converter Project in Java - TechVidvan","description":"Create Currency Converter Java project using AWT, Swing components such as Label, ComboBox, Text Field and Button, and Action Listener & Item Listener.","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:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Currency Converter Project in Java - TechVidvan","og_description":"Create Currency Converter Java project using AWT, Swing components such as Label, ComboBox, Text Field and Button, and Action Listener & Item Listener.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2023-01-20T06:20:21+00:00","article_modified_time":"2026-06-03T09:27:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"How to Create Currency Converter Project in Java","datePublished":"2023-01-20T06:20:21+00:00","dateModified":"2026-06-03T09:27:59+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/"},"wordCount":441,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp","keywords":["currency converter","Java Currency Converter Project","java project","java project for beginners","java project ideas","java project with source code"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/","url":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/","name":"How to Create Currency Converter Project in Java - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp","datePublished":"2023-01-20T06:20:21+00:00","dateModified":"2026-06-03T09:27:59+00:00","description":"Create Currency Converter Java project using AWT, Swing components such as Label, ComboBox, Text Field and Button, and Action Listener & Item Listener.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/01\/java-project-currency-converter.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-currency-converter-project\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Create Currency Converter Project in Java"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=86947"}],"version-history":[{"count":2,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86947\/revisions"}],"predecessor-version":[{"id":448010,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86947\/revisions\/448010"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/86950"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=86947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=86947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=86947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}