Java Reference
In-Depth Information
/** Creates new form WeatherXlet */
public WeatherXlet() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
location = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
forecast = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setFocusable(false);
jLabel1.setText("Location");
location.setEditable(false);
location.setText("Berkeley, CA");
location.setFocusable(false);
location.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
locationActionPerformed(evt);
}
});
jLabel2.setText("Forecast");
forecast.setEditable(false);
forecast.setText("Partly cloudy");
forecast.setFocusable(false);
forecast.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
forecastActionPerformed(evt);
}
});
 
Search WWH ::




Custom Search