steify avatar

Learning To Code #1

steify

Published: 08 Apr 2021 › Updated: 08 Apr 2021Learning To Code #1

Learning To Code #1

Today I decided to make a Currency Converter using GUI - Java.✨ The program converts any amount of dollars to euros or euros to dollars. In my program 1 USD = 0.84 EUR.💸

The amount box was made with TextField.
Both ComboBoxes have two options: EUR and USD.

The hardest part for me was to make a perfect "Convert" button because I haven't done many exercises using GUI. My goal was that if you press the button then another window will pop up and tells you the answer. I achieved my goal using EventHandler.
converter.png

Do I recommend this exercise for beginners?📚 For sure! I think it's so fun and I learned so much while doing this exercise.
total.png

To step up the game next time when I try to make a converter I will try to do BTC (live price) to USD. Think it's more advanced but doable.

Leave Learning To Code #1 to:

Written by

Read more #coding posts


Best Posts From steify

We have not curated any of steify's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From steify