Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Programming

ATE16
ATE16 


Write a Java program that meets the following requirements:- Chapter 16 Search the web to fine the approximate value of the US Dollar in other currencies. Write an application that extends JFrame and prompts the user to enter an amount in US Dollars. Use Graphics2D to display the dollar amount as well the equivalent values of two other currencies of your choice. Add color and your choice of typeface and font size. Save the file as JCurrencies.java Attachments
Tags Clarifications

Answers

Program

sudheer488
sudheer488 



Program along with output screenshots were pasted Attachments
JCurrencies.java (2 K) Download Preview
public void itemStateChanged(ItemEvent e) { String str = (String)box.getSelectedItem(); if(str.equals("Russia")) { String s = tf1.getText(); int cr1 = Integer.parseInt(s); //logic for conversion int cr2 = cr1*67; //display the converted amount lb2.setText("Converted amount in Rubels:"+cr2); }

output1.1.PNG (54 K) Download Preview

Output1.2.PNG (54 K) Download Preview

Screenshots
Screenshot
Screenshot
Purchase Answer

Mr.

felo
felo 



1 Attachments
Screenshots
Purchase Answer