Please take time to read the code disclaimer.
/**
* OfficesFrame.java
*
* Created on Nov 29, 2011, 5:02:00 PM
*/
package employeesystem;
import backend.*;
import java.util.*;
import javax.swing.*;
import silverlining.*;
/**
*
* @author Kent
*/
public class OfficesFrame extends javax.swing.JFrame {
private DefaultListModel officesListModel = new DefaultListModel();
private LinkedList officeTextFields = new LinkedList();
private Account currentAccount;
private final String newline = System.getProperty("line.separator");
/** Creates new form OfficesFrame
* @param account
*/
public OfficesFrame(Account account) {
this.currentAccount = account;
initComponents();
myInitComponents();
StaticClass.centerAndPack(this);
}
/** 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.
*/
@SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
officesPanel = new javax.swing.JPanel();
officesScrollPane = new javax.swing.JScrollPane();
officesList = new javax.swing.JList();
officesButtonPanel = new javax.swing.JPanel();
editOfficeButton = new javax.swing.JToggleButton();
createOfficeButton = new javax.swing.JToggleButton();
deleteOfficeButton = new javax.swing.JButton();
viewProgramButton = new javax.swing.JButton();
viewEmployeesButton = new javax.swing.JButton();
createProgramButton = new javax.swing.JButton();
officeInfoPanel = new javax.swing.JPanel();
officeContactNameLabel = new javax.swing.JLabel();
officeContactNameTextField = new javax.swing.JTextField();
officeContactPhoneLabel = new javax.swing.JLabel();
officeContactPhoneTextField = new javax.swing.JTextField();
officeContactEmailLabel = new javax.swing.JLabel();
officeContactEmailTextField = new javax.swing.JTextField();
officeAddressLabel = new javax.swing.JLabel();
officeAddressTextField = new javax.swing.JTextField();
officeCityLabel = new javax.swing.JLabel();
officeCityTextField = new javax.swing.JTextField();
officeStateLabel = new javax.swing.JLabel();
officeStateTextField = new javax.swing.JTextField();
officeZipLabel = new javax.swing.JLabel();
officeZipTextField = new javax.swing.JTextField();
logoLabel = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Offices for: " + currentAccount.getName());
getContentPane().setLayout(new java.awt.GridBagLayout());
officesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Offices"));
officesPanel.setLayout(new java.awt.GridBagLayout());
officesList.setModel(officesListModel);
officesList.setVisibleRowCount(5);
officesList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
officesListValueChanged(evt);
}
});
officesScrollPane.setViewportView(officesList);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 0.6;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesPanel.add(officesScrollPane, gridBagConstraints);
officesButtonPanel.setLayout(new java.awt.GridBagLayout());
editOfficeButton.setText("Edit Office");
editOfficeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
editOfficeButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(editOfficeButton, gridBagConstraints);
createOfficeButton.setText("Create Office");
createOfficeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
createOfficeButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 1;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(createOfficeButton, gridBagConstraints);
deleteOfficeButton.setText("Delete Office");
deleteOfficeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteOfficeButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(deleteOfficeButton, gridBagConstraints);
viewProgramButton.setText("View Program");
viewProgramButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
viewProgramButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(viewProgramButton, gridBagConstraints);
viewEmployeesButton.setText("View Employees");
viewEmployeesButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
viewEmployeesButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(viewEmployeesButton, gridBagConstraints);
createProgramButton.setText("Create Program");
createProgramButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
createProgramButtonActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 10;
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
officesButtonPanel.add(createProgramButton, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
officesPanel.add(officesButtonPanel, gridBagConstraints);
officeInfoPanel.setLayout(new java.awt.GridBagLayout());
officeContactNameLabel.setText("Contact Name: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactNameLabel, gridBagConstraints);
officeContactNameTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 200;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactNameTextField, gridBagConstraints);
officeContactPhoneLabel.setText("Contact Phone: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactPhoneLabel, gridBagConstraints);
officeContactPhoneTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 1;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactPhoneTextField, gridBagConstraints);
officeContactEmailLabel.setText("Contact E-mail: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactEmailLabel, gridBagConstraints);
officeContactEmailTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeContactEmailTextField, gridBagConstraints);
officeAddressLabel.setText("Address: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeAddressLabel, gridBagConstraints);
officeAddressTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeAddressTextField, gridBagConstraints);
officeCityLabel.setText("City: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 4;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeCityLabel, gridBagConstraints);
officeCityTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeCityTextField, gridBagConstraints);
officeStateLabel.setText("State: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 5;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeStateLabel, gridBagConstraints);
officeStateTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 5;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeStateTextField, gridBagConstraints);
officeZipLabel.setText("Zip: ");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 6;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeZipLabel, gridBagConstraints);
officeZipTextField.setEnabled(false);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = 100;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
officeInfoPanel.add(officeZipTextField, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridheight = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START;
gridBagConstraints.weightx = 0.3;
gridBagConstraints.insets = new java.awt.Insets(15, 15, 15, 15);
officesPanel.add(officeInfoPanel, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.ipadx = 50;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(27, 45, 0, 0);
getContentPane().add(officesPanel, gridBagConstraints);
logoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/SLLogo10%.jpg"))); // NOI18N
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 1;
gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
getContentPane().add(logoLabel, gridBagConstraints);
pack();
}// //GEN-END:initComponents
private void editOfficeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editOfficeButtonActionPerformed
if (editOfficeButton.isSelected()) {
editOfficeButton.setText("Submit Changes");
officesList.setEnabled(false);
setTextFieldsEnabled(true);
} else {
editOfficeButton.setText("Edit Office");
officesList.setEnabled(true);
setTextFieldsEnabled(false);
submitChanges();
}
}//GEN-LAST:event_editOfficeButtonActionPerformed
private void officesListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_officesListValueChanged
updateSelectedOffice();
}//GEN-LAST:event_officesListValueChanged
private void createOfficeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createOfficeButtonActionPerformed
if (createOfficeButton.isSelected()) {
createOfficeButton.setText("Submit");
clearTextFields();
officesList.setEnabled(false);
setTextFieldsEnabled(true);
} else {
createOfficeButton.setText("Create Office");
officesList.setEnabled(true);
setTextFieldsEnabled(false);
createNewOffice();
}
}//GEN-LAST:event_createOfficeButtonActionPerformed
private void deleteOfficeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteOfficeButtonActionPerformed
getSelectedOffice().setActive(false);
updateList();
}//GEN-LAST:event_deleteOfficeButtonActionPerformed
private void viewProgramButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewProgramButtonActionPerformed
AwardsDialog ad = new AwardsDialog(this, true, getSelectedOffice());
ad.setVisible(true);
}//GEN-LAST:event_viewProgramButtonActionPerformed
private void viewEmployeesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewEmployeesButtonActionPerformed
ViewEmployeesDialog ved = new ViewEmployeesDialog(this, true, getSelectedOffice());
ved.setVisible(true);
}//GEN-LAST:event_viewEmployeesButtonActionPerformed
private void createProgramButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createProgramButtonActionPerformed
int choice = JOptionPane.showConfirmDialog(this, "Creating a new program will delete the current Program."
+ newline + "Are you sure you want to do this?"
+ newline + "(The deletion will occur when you actually create the program"
+ newline + "you can view the packs and click \"<- Go Back\" to avoid program deletion.)", "Confirm Delete and Recreate", 0);
if (choice == 0) {
NewProgramDialog npd = new NewProgramDialog(this, true, getSelectedOffice());
npd.setVisible(true);
}
}//GEN-LAST:event_createProgramButtonActionPerformed
//
/**
* This initiates components I want to initiate
*/
private void myInitComponents() {
groupComponents();
updateList();
officesList.setSelectedIndex(0);
}
/**
* This method updates the items in the Office List
*/
public void updateList() {
officesListModel.clear();
for (Office office : currentAccount.getOfficeList()) {
if (office.isActive()) {
officesListModel.addElement(office.getNumber() + " - " + office.getCity());
}
}
}
/**
* This method connects the components into a list to be easily enabled and disabled
*/
public void groupComponents() {
officeTextFields.add(officeContactNameTextField);
officeTextFields.add(officeContactEmailTextField);
officeTextFields.add(officeContactPhoneTextField);
officeTextFields.add(officeAddressTextField);
officeTextFields.add(officeCityTextField);
officeTextFields.add(officeStateTextField);
officeTextFields.add(officeZipTextField);
}
//
/**
* This method submits the changes in given in the text fields
*/
public void submitChanges() {
Office selectedOffice = getSelectedOffice();
selectedOffice.setContactName(officeContactNameTextField.getText());
selectedOffice.setContactPhone(officeContactPhoneTextField.getText());
selectedOffice.setContactEmail(officeContactEmailTextField.getText());
selectedOffice.setAddress(officeAddressTextField.getText());
selectedOffice.setCity(officeCityTextField.getText());
selectedOffice.setState(officeStateTextField.getText());
selectedOffice.setZip(officeZipTextField.getText());
}
/**
* This method creates a new office
*/
public void createNewOffice() {
Office newOffice = new Office(currentAccount);
newOffice.setNumber(currentAccount.getNumber() + "O" + Integer.toString(new Random().nextInt(999)));
newOffice.setContactName(officeContactNameTextField.getText());
newOffice.setContactPhone(officeContactPhoneTextField.getText());
newOffice.setContactEmail(officeContactEmailTextField.getText());
newOffice.setAddress(officeAddressTextField.getText());
newOffice.setCity(officeCityTextField.getText());
newOffice.setState(officeStateTextField.getText());
newOffice.setZip(officeZipTextField.getText());
currentAccount.getOfficeList().add(newOffice);
updateList();
}
/**
* This method enables / disables all the fields for the given set
* @param state
*/
public void setTextFieldsEnabled(boolean state) {
for (JTextField field : officeTextFields) {
field.setEnabled(state);
}
}
/**
* This method clears the information in the text fields
* @param fieldList
*/
public void clearTextFields() {
for (JTextField field : officeTextFields) {
field.setText("");
}
}
/**
* This method updates the information based on the selected Account
*/
public void updateSelectedOffice() {
Office selectedOffice = getSelectedOffice();
officeContactNameTextField.setText(selectedOffice.getContactName());
officeContactPhoneTextField.setText(selectedOffice.getContactPhone());
officeContactEmailTextField.setText(selectedOffice.getContactEmail());
officeAddressTextField.setText(selectedOffice.getAddress());
officeCityTextField.setText(selectedOffice.getCity());
officeStateTextField.setText(selectedOffice.getState());
officeZipTextField.setText(selectedOffice.getZip());
}
/**
* This gets the selected account
* @return account selected
*/
public Office getSelectedOffice() {
if ((officesList.getSelectedIndex()) == -1) {
return new Office(new Account());
} else {
return currentAccount.getOfficeList().get(officesList.getSelectedIndex());
}
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/** Set the Nimbus look and feel */
//
/** If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(OfficesFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(OfficesFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(OfficesFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(OfficesFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//
/** Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new OfficesFrame(new Account()).setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JToggleButton createOfficeButton;
private javax.swing.JButton createProgramButton;
private javax.swing.JButton deleteOfficeButton;
private javax.swing.JToggleButton editOfficeButton;
private javax.swing.JLabel logoLabel;
private javax.swing.JLabel officeAddressLabel;
private javax.swing.JTextField officeAddressTextField;
private javax.swing.JLabel officeCityLabel;
private javax.swing.JTextField officeCityTextField;
private javax.swing.JLabel officeContactEmailLabel;
private javax.swing.JTextField officeContactEmailTextField;
private javax.swing.JLabel officeContactNameLabel;
private javax.swing.JTextField officeContactNameTextField;
private javax.swing.JLabel officeContactPhoneLabel;
private javax.swing.JTextField officeContactPhoneTextField;
private javax.swing.JPanel officeInfoPanel;
private javax.swing.JLabel officeStateLabel;
private javax.swing.JTextField officeStateTextField;
private javax.swing.JLabel officeZipLabel;
private javax.swing.JTextField officeZipTextField;
private javax.swing.JPanel officesButtonPanel;
private javax.swing.JList officesList;
private javax.swing.JPanel officesPanel;
private javax.swing.JScrollPane officesScrollPane;
private javax.swing.JButton viewEmployeesButton;
private javax.swing.JButton viewProgramButton;
// End of variables declaration//GEN-END:variables
}