title: Having issues with my weather data java program in eclipse
body: <p>I am trying to get the code to calculate the windchill, but it is not working. I want the calculations to appear on a separate window when they are done.</p>
  
  <p>In addition I need the program to have a separate error dialog box appear when invalid data is entered or when a wind chill is not valid, and the text in the GUI should reflect the issue. And the file entry button when selected, should display a file selection window. File opening errors will be handled with exceptions and dialog boxes. If the file is valid and opened successfully, the program will read in the data, compute the results, and display the data and results in columns in a separate window created through a separate class and Java file, and plot the Temperature and Wind Chill values.</p>
  
  <p>Code:</p>
  
  <pre><code>   import java.awt.BorderLayout;
     import java.awt.EventQueue;
  
     import javax.swing.JFrame;
     import javax.swing.JPanel;
     import javax.swing.border.EmptyBorder;
     import java.awt.Color;
     import javax.swing.border.LineBorder;
     import javax.swing.JLabel;
     import java.awt.FlowLayout;
     import java.awt.Font;
     import java.util.Scanner;
  
     import javax.swing.JTextField;
     import javax.swing.JButton;
     import java.awt.event.ActionListener;
     import java.awt.event.ActionEvent;
  
     public class WindChillCalculations extends JFrame {
  
     private JPanel contentPane;
     private static JTextField Fahrenheit_textField;
     private static JTextField Mph_textField;
     private static JTextField DewPoint_textField;
  
     /**
     * Launch the application.
     */
     public static void main(String[] args) {
     EventQueue.invokeLater(new Runnable() {
         public void run() {
             try {
                 WindChillCalculations frame = new WindChillCalculations();
                 frame.setVisible(true);
             } catch (Exception e) {
                 e.printStackTrace();
             }
         }
      });
  
     String fahrenheit = Fahrenheit_textField.getText();
     String speed = Mph_textField.getText();
     String dewpoint = DewPoint_textField.getText();
  
     double t = Double.parseDouble(fahrenheit);
     double v = Double.parseDouble(speed);
     double d = Double.parseDouble(dewpoint);
  
     //Calculate windchill
     double w = 35.74 + (0.6215 * t) - (35.75 * (Math.pow(v,0.16))) + (0.4275 * (t * (Math.pow(v,0.16))));
  
     //Format to keep the windchill to 2 digits after decimal
     w = (int)(w*100)/100.0;
   }
  
   /**
   * Create the frame.
   */
   public WindChillCalculations() {
     setTitle("Weather Data Program - Wind Chill Calculations");
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     setBounds(100, 100, 491, 383);
     contentPane = new JPanel();
     contentPane.setForeground(Color.WHITE);
     contentPane.setBackground(Color.BLACK);
     contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
     setContentPane(contentPane);
     contentPane.setLayout(null);
  
     JPanel panel = new JPanel();
     panel.setToolTipText("");
     panel.setBorder(new LineBorder(Color.WHITE));
     panel.setForeground(Color.BLACK);
     panel.setBackground(Color.BLACK);
     panel.setBounds(2, 4, 470, 338);
     contentPane.add(panel);
     panel.setLayout(null);
  
     JLabel WindChillCalculationsLabel = new JLabel("Wind Chill Calculations");
     WindChillCalculationsLabel.setBounds(146, 6, 137, 15);
     WindChillCalculationsLabel.setFont(new Font("Tahoma", Font.BOLD, 12));
     panel.add(WindChillCalculationsLabel);
     WindChillCalculationsLabel.setForeground(Color.WHITE);
  
     JLabel Fahrenheit_Label = new JLabel("Enter the temperature in degrees Fahrenheit:");
     Fahrenheit_Label.setForeground(new Color(255, 140, 0));
     Fahrenheit_Label.setBounds(10, 67, 305, 14);
     panel.add(Fahrenheit_Label);
  
     Fahrenheit_textField = new JTextField();
     Fahrenheit_textField.setBounds(338, 64, 86, 20);
     panel.add(Fahrenheit_textField);
     Fahrenheit_textField.setHorizontalAlignment(JTextField.RIGHT);
     Fahrenheit_textField.setColumns(10);
  
     JLabel Mph_Label = new JLabel("Enter the wind speed in mph:");
     Mph_Label.setForeground(new Color(255, 140, 0));
     Mph_Label.setBounds(10, 123, 305, 14);
     panel.add(Mph_Label);
  
     Mph_textField = new JTextField();
     Mph_textField.setColumns(10);
     Mph_textField.setBounds(338, 120, 86, 20);
     Mph_textField.setHorizontalAlignment(JTextField.RIGHT);
     panel.add(Mph_textField);
  
     JLabel DewPoint_Label = new JLabel("Enter the dew point in degrees Fahrenheit:");
     DewPoint_Label.setForeground(new Color(255, 140, 0));
     DewPoint_Label.setBounds(10, 177, 305, 14);
     panel.add(DewPoint_Label);
  
     DewPoint_textField = new JTextField();
     DewPoint_textField.setColumns(10);
     DewPoint_textField.setBounds(338, 174, 86, 20);
     DewPoint_textField.setHorizontalAlignment(JTextField.RIGHT);
     panel.add(DewPoint_textField);
  
     JButton FileEntry_btn = new JButton("File Entry");
     FileEntry_btn.setBackground(Color.BLACK);
     FileEntry_btn.setForeground(new Color(255, 140, 0));
     FileEntry_btn.setBounds(39, 283, 89, 23);
     panel.add(FileEntry_btn);
  
     JButton Compute_btn = new JButton("Compute");
     Compute_btn.setForeground(new Color(255, 140, 0));
     Compute_btn.setBackground(Color.BLACK);
     Compute_btn.setBounds(301, 283, 89, 23);
     panel.add(Compute_btn);
  
     Compute_btn.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
             WeatherOutput output = new WeatherOutput();
             output.setVisible(true);
         }
     });
  </code></pre>
  
  <p>}
  }</p>