Java Netbeans - Currency Converter Part 1 of 3

Java Netbeans - Currency Converter Part 1 of 3


This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates.
Link to text file containing the regular expression, link & currency list:
http://azizsaleh.com/text/java-curren...
Source Code:
http://www.azizsaleh.com/text/java-cu...
Closed Caption:

hi welcome to the first tutorial on how
to develop java application on NetBeans
ID so today we'll be doing a currency
converter based on your whole currency
converter so basically we start the
netbeans ide and create a new project
right now just call the project
converter you can just call it anything
you want you can also use a different
idea if you want i'm just using that
paints thing I'm used to so I just
create a new project will be creating a
java application click on next year
let's call it can offer her is your says
create main class and says main class
have them both unchecked use click
finish this way doesn't create a new
class for us or a file we create the
fart the files manually so i'll expand
the source package we see we we don't
have any files so to create a new one we
right click click no we choose the
jframe form basically we create a new
form is called converter and the package
which is also called converter cyclic
finish
here we have the form but before we
actually fill in the form let's make
sure that has the main class you just
try to run says oh you don't have a main
class setup in class so he said the
converter to have the main class but
since it's empty
it's really nothing here but now you can
see if you go to the source sort of your
having to go into the main class does
the whole thing for you automatically
ok now let's just the first step will
create and here you have the containers
and all the stuff that you need to make
let's do label enter amount
basically this is the amount that you
want to convert from so you want to
convert one dollar two dollars three
dollars we have a text field let's reset
it to okay we don't need this
this reset it to
so it here let's make a variable name
for it will call it the currency amount
and the AC well the text will just make
sure it's 214 now make a little bit
bigger enter the amount now we need to
have the list for the currency from so
just do this one here Karen see from and
the currency to ok i already have the
list of currencies I scraped of google
and google I'm sorry
yahoo so let's just select a where's the
list
this is the list so basically here will
have this is going to be called variable
name that's just what curve from
basically the currency from so that's a
change here is the list
this is the list basically it's going to
have the list here we'll do it in a way
that we could actually see the name and
also have the code like here's the US
dollars USD so basically lets I think
you have it somewhere here preset
so just do it this way but now let's
will have to use dreamweaver to
reorganize the textile I guess I mean I
find dreamweaver to be like a nice tool
when you want to search and replace many
stuff with a lot of stuff so this is
basically it here so we'll just replace
this with the new line which is this
here
see now replace all gets everybody set
for you and here
now
they're all organized for us so just
copy it here i don't have these new
lines will cause a problem
yeah they do so we just have to take
these new lines out as well replace all
nope big mistake
let's do it this way he plays all
another mistake this is it this way
replace these lines owning a place all
this is much better now we have all the
list clean it's just added to the list
and click ok so we have the list here
and we have to do the same thing for the
currency to just have to change the name
curr to now we need the actual button to
see convert can hurt now there's
something we could actually get from
google to keep saying Google from yahoo
which is the time the when it's actually
what time it is being converted what
will or what time was the last
conversion so it's basically going to be
an empty label but change variable name
we're going to call it a result display
time and then we have a textbox problem
textbox text field and this will
basically have the the value of the
conversion so change variable name we
salt this play
ok so we have everything this one each
to be disabled
it's only going to be just basically
could have done a label but text boxes
look nice I guess so let's see where the
disabled property is ok enabled and
check it it's going to be disabled now
we have this whole thing here that's
going to start with the code basically
we need to generate the handler for this
just double click on it it takes us
three handler first step is to collect
the actual values so basically let's get
the amount get the amount to convert
it's going to be a string current amount
text and we're going to take it from the
current amount get text function now we
have the text now we have to check if
the actual number is a number just make
sure that there are no that is check for
numbers only
so basically a for loop and I i will be
the less than kerr mound text that
length the length of the characters i
plus plus
now we check if the character is a digit
now if the character is a digit then if
it's not a digit then it's probably a
number text that chart at it's going to
be I what we're going to do is have a
text box basically an alert j option
then that show message dialog box this
and just give him the message please
enter a valid amount and we want to
reset the focus to the field can return
okay Jay option being cannot find the
basically just some include still we
have to do a lot of do it later on so
let's worry about the includes later the
ok now we have the text let's reset the
display result display that set text
make an empty now let's get the currency
from and to the string currency from
text is going to be the curve from that
get selected basically we get the
selected value that to string now we
have the string curve to text
it's going to be the same thing
Kurt to that get selected value that to
string basically we get the selected
value and this to string converts it to
a string this is more like JavaScript
few have worked with it before and the
so we have now here's the thing the way
the curt text is designed is the easy
houses euro dash and then the code we
basically have split and get the actual
code from the value so just say string
array is called attempts know and this
to temp equal the cur from text and
split it with the this here now we have
the curve from text and we have the
split we go to string Kurt from title
that's basically the title going to be
zero that's the title
and then the string from code is going
to be temp 1 now we have the code and
the title of the first one that's
basically do the same for the second one
we have temp will equal kerr text .
split ok we have string without courage
to text i'm sorry we have string kerr to
text temp 0 then the same thing the
string kerr to code
I'm going to be tempted one basically we
have the values of the text
oh my bad title 42 title and the car to
code now we compose the URL that we're
going to access from group yahoo so the

Video Length: 14:45
Uploaded By: Aziz Saleh
View Count: 14,212

Related Software Products
Easy Currency Converter
Easy Currency Converter

Published By:
Ashkon Technology LLC

Description:
Easy Currency Converter is a simple currency calculator. It converts about 200 world currencies including Euro and updates exchange rates with a single button click. Cross- currency calculations are based on US Dollar - local currency exchange rate.


Related Videos
Visual Studio, Visual Basic - Currency Converter Part 1 of 2
Visual Studio, Visual Basic - Currency Converter Part 1 of 2

This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates. hr / bClosed Caption:/b hi welcome to this first tutorial on visual basic basically could use any visual basic you on time using visual basic 2010 I got it from my previous job so I'm going to lucky but you can actually download even the free version so ...
Video Length: 14:12
Uploaded By: Aziz Saleh
View Count: 36,644

Currency Converter 3.0.0 for Android
Currency Converter 3.0.0 for Android

https://play.google.com/store/apps/de... Currency exchange rate calculator and exchange rates list for your android device. Download “Currency Converter” right now to get the most recent foreign currencies conversion rates from all around the world. It’s is free and always accessible even when you are offline. It is easy to use and it does the currency conversion of up to 15 foreign currencies at once.“Currency Converter” is not just another free android foreign exchange ...
Video Length: 01:13
Uploaded By: Rudo Halmi
View Count: 26,216

Android App: Easy Global Currency Converter (Money Exchange)
Android App: Easy Global Currency Converter (Money Exchange)

The andoird Play Store has a number of currency exchange Apps, but none of them * Display all charts in a single page for easy comparison * Preload exchange rate between the local currency and 19 major foreign currencies * Navigate exchange rates and charts by a single finger slide This app shows the exchange rates between 133 currencies, and it has the following features: * User friendly : Navigate exchange rates and charts by a finger sliding * Easy ...
Video Length: 01:11
Uploaded By: Gao Shiyu
View Count: 13,350

Visual Studio, Visual Basic - Currency Converter Part 2 of 2
Visual Studio, Visual Basic - Currency Converter Part 2 of 2

This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates. Link to text file containing the regular expression, link & currency list: http://azizsaleh.com/text/vb-currency-converter.txt Source Code: http://www.azizsaleh.com/text/vb-currency-converter-source.txt hr / bClosed Caption:/b probably we million name small mistake with ...
Video Length: 06:55
Uploaded By: Aziz Saleh
View Count: 11,118

How to convert currency using Google
How to convert currency using Google

Using a standard Google search, it's easy to do a quick currency conversions from your native currency to another country's currency when you're traveling. From US dollars to Euros, British pounds, Aussie dollars, Japanese yen or Chinese yuan and back again, currency conversion is easy with Google. A Internet tutorial by butterscotch.com. Distributed by Tubemogul. hr / bClosed Caption:/b well I'll back is Mike Callahan doctor file finder and welcome ...
Video Length: 01:50
Uploaded By: butterscotchcom
View Count: 8,730

Best Currency Converter
Best Currency Converter

http://www.ForexConspiracyReport.com - Best Currency Converter There are many currency converters available for comparing currency rates. The best currency converter will be one that provides up to the minute exchange rates in an easy to read format and follows standard procedure for quoting currencies. The best currency converter will allow traders to gain a quick snap shot of the currency markets while trading a given currency pair. The best currency converter will be an asset to ...
Video Length: 03:38
Uploaded By: ForexConspiracy
View Count: 6,280

Java Netbeans - Currency Converter Part 2 of 3
Java Netbeans - Currency Converter Part 2 of 3

This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates. Link to text file containing the regular expression, link & currency list: http://azizsaleh.com/text/java-currency-converter.txt Source Code: http://www.azizsaleh.com/text/java-currency-converter-source.txt hr / bClosed Caption:/b fareal I already have its you could ...
Video Length: 13:59
Uploaded By: Aziz Saleh
View Count: 5,090

Java Netbeans - Currency Converter Part 3 of 3
Java Netbeans - Currency Converter Part 3 of 3

This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates. Link to text file containing the regular expression, link & currency list: http://azizsaleh.com/text/java-currency-converter.txt Source Code: http://www.azizsaleh.com/text/java-currency-converter-source.txt hr / bClosed Caption:/b to float and gonna be the totalbr ...
Video Length: 05:06
Uploaded By: Aziz Saleh
View Count: 4,079

Currency Converter for Android
Currency Converter for Android

Easy to use currency converter. Features: * Offline mode. * Convert 150+ currencies. * Powerful calculator with percent button. * Precision up to 40 significant decimal digits. * Unlimited active currencies list. * Drag to reorder list of currencies. * Three awesome skins including night skin. * Useful information about currencies (On-line only) * Option to upgrade to a banner-free version from menu.br ...
Video Length: 04:32
Uploaded By: MobileSoftJungle
View Count: 3,146

Forex Currency Converter Pakistan
Forex Currency Converter Pakistan

Forex Currency Converter Pakistan - Easy
Video Length: 04:02
Uploaded By: Marianawkq91019
View Count: 1,513

Copyright © 2025, Ivertech. All rights reserved.