Here is my current code for a currency conversion program. I would like to add a blank line between each of the output statements. How can I do that?
Thanks!!
Robert
/*
Chapter 3: Bill's Burgers Sales Tax Calculator
Programmer: Robert Ehinger
Date: February 19, 2010
Filename: CurrencyConversion.java
Purpose: This projects calculates the sales tax on orders placed at Bill's Burger Front Counter.
public class CurrencyConversionApplet extends Applet implements ActionListener
{
//construct components
Label welcomeLabel = new Label("Welcome to the Currency Conversion Calculator");
Label costDollarsLabel = new Label("Please enter the number of dollars you want to convert: ");
TextField costDollarsField = new TextField (5);
Button calcButton = new Button("Calculate");
Label poundsLabel = new Label("Click the Calculate button to display the converted values.");
Label eurosLabel = new Label();
Label rublesLabel= new Label();
//declare variables
Image logo; //declare an image object
public void init()
{
setForeground(Color.green);
add(welcomeLabel);
add(costDollarsLabel);
add(costDollarsField);
add(calcButton);
calcButton.addActionListener(this);
add(poundsLabel);
add(eurosLabel);
add(rublesLabel);
logo = getImage(getDocumentBase(), "logo.gif");
}
public void actionPerformed(ActionEvent e)
{
double costDollars=Double.parseDouble(costDollarsField.getText());