p5 - import import import import import import import...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; import javax.swing.*; import java.awt.*; import java.awt.event.*; i public class p5 extends JFrame { static double P, R, T; private JLabel PrincipleL, RateL, TimeL,InterestL; private JTextField PrincipleTF, RateTF, TimeTF,InterestTF; private JButton calculateB, exitB; private CalculateButtonHandler cbHandler; private ExitButtonHandler ebHandler; private static final int WIDTH = 400; private static final int HEIGHT = 300; public p5() { //Create the four labels PrincipleL = new JLabel("Enter the Principle: ", SwingConstants.LEFT); RateL = new JLabel("Enter the Rate: ", SwingConstants.LEFT); TimeL = new JLabel("Enter the Time period: ", SwingConstants.LEFT); InterestL = new JLabel("Interest: ", SwingConstants.LEFT); //Create the four text fields PrincipleTF = new JTextField(10); RateTF = new JTextField(10); TimeTF = new JTextField(10); InterestTF = new JTextField(10);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2011 for the course COMP 2302 taught by Professor Staff during the Spring '11 term at Kennesaw.

Page1 / 2

p5 - import import import import import import import...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online