Currency Convertor java project, swing component ,| Gui application


currency convertor java project, swing component ,| Gui application

 

 

 
This is mini project which is done by student in this you can convert the currency from one form to another. simple code for currency convertor java project .
//

import java.awt.*;
import javax.swing.*;
import java.applet.*;
import java.awt.event.*;
class CurrencyConveter extends JFrame implements ActionListener
{
JFrame f;
JLabel l1,l2;
JTextField t1,t2;
JButton b1,b2;
JComboBox c1,c2;

CurrencyConveter()
{
f=new JFrame(“Currency Conveter”);

String[] currency={“US Dollar”,”Indian Rupee”,”British Pound”,”Euro”,”Chinese Yuan”};
c1=new JComboBox(currency);
c1.setSelectedIndex(0);
c1=new JComboBox(currency);
//c2.setSelctedIndex(1);

l1=new JLabel(“enter your currency”);
l2=new JLabel(“conveted currency is:”);

CheckboxGroup g=new CheckboxGroup(); 
Checkbox i=new Checkbox(“India”,g,true);
Checkbox u=new Checkbox(“usa”,g,false);
Checkbox n=new Checkbox(“Nepal”,g,false);
Checkbox m=new Checkbox(“Malaysia”,g,false);


t1=new JTextField(10);
t2=new JTextField(10);

b1=new JButton(“convert”);
b2=new JButton(“cancel”);

f.setVisible(true);
f.setSize(400,400);
f.setLayout(new FlowLayout());

f.add(l1);
f.add(t1);
f.add(b1);
f.add(b2);
f.add(l2);
f.add(t2);

b1.addActionListener(this);
b2.addActionListener(this);

}
public void actionPerformed(ActionEvent e)
{
}





public static void main(String []pp)
{
new CurrencyConveter();
}

}

For more Project
 

Currency Convertor java project, swing component ,| Gui application

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories

You have successfully subscribed to myprogrammingschool

There was an error while trying to send your request. Please try again.

My Programming School will use the information you provide on this form to be in touch with you and to provide updates and marketing.