/Users/suziweissova/Desktop/School/Grade 11/Computer Science/Dossier for bro 56/src/dossier/pkgfor/bro/MainDossierGUI.java
   1 /*
   2  * To change this template, choose Tools | Templates
   3  * and open the template in the editor.
   4  */
   5 package dossier.pkgfor.bro;
   6 
   7 import java.io.BufferedReader;
   8 import java.io.BufferedWriter;
   9 import java.io.FileNotFoundException;
  10 import java.io.FileReader;
  11 import java.io.FileWriter;
  12 import java.io.IOException;
  13 import java.io.PrintWriter;
  14 import java.util.ArrayList;
  15 import java.util.LinkedList;
  16 import java.util.StringTokenizer;
  17 import java.util.logging.Level;
  18 import java.util.logging.Logger;
  19 import javax.swing.JFileChooser;
  20 import javax.swing.JOptionPane;
  21 import javax.swing.JTable;
  22 import javax.swing.JTextField;
  23  
  24 /**
  25  *
  26  * @author suziweissova
  27  */
  28 /* 
  29  * PLAY AROUND WITH DATA TABLE
  30  * SAVE FILES
  31  */
  32 public class MainDossierGUI extends javax.swing.JFrame {
  33 
  34     ArrayList<tenantsInformation> tenantsInformationList = new ArrayList();
  35     ArrayList<repairInformation> repairInformationList = new ArrayList();
  36     ArrayList<propertyInformation> propertyInformationList = new ArrayList();
  37     ArrayList<dueDatesInformation> dueDatesInformationList = new ArrayList();
  38     private BufferedWriter BufferedWriter;
  39     private String file;
  40     //By making these lists, this allows the user to add data to the program. 
  41 
  42     /**
  43      * Creates new form MainDossierGUI
  44      */
  45     public MainDossierGUI() {
  46 
  47 
  48         initComponents();
  49 
  50 
  51     }
  52 
  53     /**
  54      * This method is called from within the constructor to initialize the form.
  55      * WARNING: Do NOT modify this code. The content of this method is always
  56      * regenerated by the Form Editor.
  57      */</editor-fold>                        
1192 
1193     private void repairOpenMouseReleased(java.awt.event.MouseEvent evt) {                                         
1194         JFileChooser jfc = new JFileChooser();
1195         //  jfc.showOpenDialog(this);
1196         //This method allows the user to open the repair informatio that has already been saved into a table in the application. 
1197         try {
1198 
1199             FileReader fr = new FileReader("/Library/Application Support/MainDossierForBro/Repair-Information.txt");
1200             // FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Tenants-Information.txt");
1201             BufferedReader br = new BufferedReader(fr);
1202             String readIn = "";
1203             readIn = br.readLine();
1204             StringTokenizer st = new StringTokenizer(readIn, ":");
1205             int rowCounter = 0;
1206             while (st.hasMoreTokens()) {
1207 
1208                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 0);
1209                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 1);
1210                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 2);
1211                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 3);
1212                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 4);
1213                 repairInformationTable.setValueAt(st.nextToken(), rowCounter, 5);
1214                 rowCounter++;
1215 
1216             }
1217         } catch (IOException ex) {
1218             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1219         }
1220 
1221 
1222     }                                        
1223 
1224     private void tenantOpenMouseReleased(java.awt.event.MouseEvent evt) {                                         
1225         //JFileChooser jfc = new JFileChooser();
1226         //jfc.showOpenDialog(this);
1227         //This method allows the user to open the tenant information that has already been saved into a table in the application.
1228         try {
1229 
1230             FileReader fr = new FileReader("/Library/Application Support/MainDossierForBro/Tenants-Information.txt");
1231             // FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Tenants-Information.txt");
1232             BufferedReader br = new BufferedReader(fr);
1233             String readIn = "";
1234             readIn = br.readLine();
1235             StringTokenizer st = new StringTokenizer(readIn, ":");
1236             int rowCounter = 0;
1237             while (st.hasMoreTokens()) {
1238                 //System.out.println(st.nextToken());
1239                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 0);
1240                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 1);
1241                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 2);
1242                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 3);
1243                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 4);
1244                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 5);
1245                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 6);
1246                 tenantsInformationTable.setValueAt(st.nextToken(), rowCounter, 7);
1247                 rowCounter++;
1248                 // nextRowToFillTenants++;
1249 
1250             }
1251         } catch (FileNotFoundException ex) {
1252             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1253         } catch (IOException ex) {
1254             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1255 
1256 
1257     }                                        
1258     }
1259 
1260     private void propertyOpenMouseReleased(java.awt.event.MouseEvent evt) {                                           
1261         /*
1262         
1263          JFileChooser jfc = new JFileChooser();
1264          // jfc.showOpenDialog(this);
1265          try {
1266          FileReader fr = new FileReader("/Library/Application Support/MainDossierForBro/Property-Information.txt");
1267          //FileReader fr = new FileReader(jfc.getSelectedFile());
1268          BufferedReader br = new BufferedReader(fr);
1269          String readIn = "";
1270          readIn = br.readLine();
1271          StringTokenizer st = new StringTokenizer(readIn, ":");
1272          int rowCounter = 0;
1273          while (st.hasMoreTokens()) {
1274          System.out.println(st.nextToken());
1275          propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 0);
1276          propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 1);
1277          propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 2);
1278          propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 3);
1279          rowCounter++;
1280          }
1281          } catch (FileNotFoundException ex) {
1282          Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1283          } catch (IOException ex) {
1284          Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1285          }
1286          */
1287     }                                          
1288 
1289     private void propertyOpenMousePressed(java.awt.event.MouseEvent evt) {                                          
1290         //JFileChooser jfc = new JFileChooser();
1291         //jfc.showOpenDialog(this);
1292         //This method allows the user to open the property information that has already been saved into a table in the application.
1293         try {
1294             FileReader fr = new FileReader("/Library/Application Support/MainDossierForBro/Property-Information.txt");
1295             //FileReader fr = new FileReader(jfc.getSelectedFile());
1296             BufferedReader br = new BufferedReader(fr);
1297             String readIn = "";
1298             readIn = br.readLine();
1299             StringTokenizer st = new StringTokenizer(readIn, ":");
1300             int rowCounter = 0;
1301             while (st.hasMoreTokens()) {
1302                 //System.out.println(st.nextToken());
1303                 propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 0);
1304                 propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 1);
1305                 propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 2);
1306                 propertyInformationTable.setValueAt(st.nextToken(), rowCounter, 3);
1307                 rowCounter++;
1308             }
1309         } catch (FileNotFoundException ex) {
1310             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1311         } catch (IOException ex) {
1312             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1313         }
1314 
1315     }                                         
1316 
1317     private void dueDateOpenMouseReleased(java.awt.event.MouseEvent evt) {                                          
1318         //This method allows the user to open the due dates information that has already been saved into a table in the application.
1319 
1320         try {
1321             FileReader fr = new FileReader("/Library/Application Support/MainDossierForBro/Due-Dates-Information.txt");
1322             BufferedReader br = new BufferedReader(fr);
1323             String readIn = " ";
1324             readIn = br.readLine();
1325             StringTokenizer st = new StringTokenizer(readIn, ":");
1326             int rowCounter = 0;
1327             while (st.hasMoreTokens()) {
1328                 dueDatesTable.setValueAt(st.nextToken(), rowCounter, 0);
1329                 dueDatesTable.setValueAt(st.nextToken(), rowCounter, 1);
1330                 dueDatesTable.setValueAt(st.nextToken(), rowCounter, 2);
1331                 dueDatesTable.setValueAt(st.nextToken(), rowCounter, 3);
1332                 rowCounter++;
1333             }
1334         } catch (FileNotFoundException ex) {
1335             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1336         } catch (IOException ex) {
1337             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1338         }
1339 
1340     }                                         
1341 
1342     private void inputDDMouseReleased(java.awt.event.MouseEvent evt) {                                      
1343         //This inputs the data of the due dates onto the table and clears the text fields for the user to conintue adding data.
1344         //Also, once this button is released, the program automatically saves a file onto the computer in order to keep data collected and consistant. 
1345 
1346         dueDatesInformationList.add(new dueDatesInformation(taskToDo.getText(), startDate.getText(), endDate.getText(), (String) importanceLevel.getSelectedItem()));
1347         taskToDo.setText("");
1348         startDate.setText("");
1349         endDate.setText("");
1350         importanceLevel.setSelectedItem("");
1351 
1352         for (int i = 0; i < dueDatesInformationList.size(); i++) {
1353             dueDatesTable.setValueAt(dueDatesInformationList.get(i).gettaskToDo(), i, 0);
1354             dueDatesTable.setValueAt(dueDatesInformationList.get(i).getstartDate(), i, 1);
1355             dueDatesTable.setValueAt(dueDatesInformationList.get(i).getendDate(), i, 2);
1356             dueDatesTable.setValueAt(dueDatesInformationList.get(i).getimportanceLevel(), i, 3);
1357 
1358         }
1359 
1360         // JFileChooser jfc = new JFileChooser();
1361         //jfc.showSaveDialog(this);
1362         try {
1363             // FileWriter fw = new FileWriter(jfc.getSelectedFile());
1364             FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Due-Dates-Information.txt");
1365             BufferedWriter bw = new BufferedWriter(fw);
1366             for (int i = 0; i < dueDatesInformationList.size(); i++) {
1367                 bw.write(dueDatesInformationList.get(i).gettaskToDo() + ":");
1368                 bw.write(dueDatesInformationList.get(i).getstartDate() + ":");
1369                 bw.write(dueDatesInformationList.get(i).getendDate() + ":");
1370                 bw.write(dueDatesInformationList.get(i).getimportanceLevel() + ":");
1371             }
1372             bw.close();
1373 
1374         } catch (IOException ex) {
1375             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1376         }
1377 
1378     }                                     
1379 
1380     private void savePropertyInfoMouseReleased(java.awt.event.MouseEvent evt) {                                               
1381         //  JFileChooser jfc = new JFileChooser();
1382         //jfc.showSaveDialog(this);
1383         //This button saves the data regarding properties that the user inputted. The FileWriter automativally saves the data
1384         //onto a file under Application Support. 
1385         try {
1386             //  FileWriter fw = new FileWriter(jfc.getSelectedFile());
1387             //FileWriter fw = new FileWriter ("Property Information");
1388             FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Property-Information.txt");
1389             BufferedWriter bw = new BufferedWriter(fw);
1390             for (int i = 0; i < propertyInformationList.size(); i++) {
1391                 bw.write(propertyInformationList.get(i).getpropertyType() + ":");
1392                 bw.write(propertyInformationList.get(i).getdevelopmentCost() + ":");
1393                 bw.write(propertyInformationList.get(i).getrepairBudget() + ":");
1394                 bw.write(propertyInformationList.get(i).getpropertyAddress() + ":");
1395             }
1396             bw.close();
1397 
1398         } catch (IOException ex) {
1399             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1400         }
1401 
1402     }                                              
1403 
1404     private void displayPropertyInformationMouseReleased(java.awt.event.MouseEvent evt) {                                                         
1405         //This method is the event of a button. Once the button is released, the data the user types into the text fields
1406         //will be shown in the table.
1407         for (int i = 0; i < propertyInformationList.size(); i++) {
1408             propertyInformationTable.setValueAt(propertyInformationList.get(i).getpropertyType(), i, 0);
1409             propertyInformationTable.setValueAt(propertyInformationList.get(i).getdevelopmentCost(), i, 1);
1410             propertyInformationTable.setValueAt(propertyInformationList.get(i).getrepairBudget(), i, 2);
1411             propertyInformationTable.setValueAt(propertyInformationList.get(i).getpropertyAddress(), i, 3);
1412         }
1413     }                                                        
1414 
1415     private void inputPropertyInfoButtonMouseReleased(java.awt.event.MouseEvent evt) {                                                      
1416         //This method is the event of a button. Once the button is released, the text fields that the user
1417         //uses will clear, allowing them to add more data to the ArrayList. 
1418         try {
1419             propertyInformationList.add(new propertyInformation(propertyType.getText(), Double.parseDouble(developmentCostTF.getText()), Double.parseDouble(repairBudgetTF.getText()), propertyAddressTF.getText()));
1420             propertyType.setText("");
1421             developmentCostTF.setText("");
1422             repairBudgetTF.setText("");
1423             propertyAddressTF.setText("");
1424         } catch (NumberFormatException e) {
1425             JOptionPane.showMessageDialog(this,
1426                     "Development cost and repair budget should be numbers.",
1427                     "Error",
1428                     JOptionPane.WARNING_MESSAGE);
1429         }
1430     }                                                     
1431 
1432     private void saveRepairInfoButtonMouseReleased(java.awt.event.MouseEvent evt) {                                                   
1433 
1434         //This method is the event of a button. Once the button is released, the repair information will be automically,
1435         //saved onto a file using FileWriter into the computer. 
1436         try {
1437             //    FileWriter fw = new FileWriter(jfc.getSelectedFile());
1438 
1439             //String userHomeFolder = System.getProperty("user.home");
1440             FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Repair-Information.txt");
1441             //BufferedWriter bw = new BufferedWriter(fw);
1442             BufferedWriter bw = new BufferedWriter(fw);
1443             for (int i = 0; i < repairInformationList.size(); i++) {
1444                 bw.write(repairInformationList.get(i).getchosenTenant() + ":");
1445                 bw.write(repairInformationList.get(i).getrepairType() + ":");
1446                 bw.write(repairInformationList.get(i).getrepairResolvedCB() + ":");
1447                 bw.write(repairInformationList.get(i).getwhoResolved() + ":");
1448                 bw.write(repairInformationList.get(i).getwhenResolved() + ":");
1449                 bw.write(repairInformationList.get(i).getdescriptionOfProblem() + ":");
1450 
1451             }
1452             bw.close();
1453 
1454         } catch (IOException ex) {
1455             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1456         }
1457     }                                                  
1458 
1459     private void displayRepairInformationMouseReleased(java.awt.event.MouseEvent evt) {                                                       
1460         //This method is the event of a button. Once the button is released, the repair information will be displayed
1461         //onto the tables for the user to see. The information shown will be the new data the user has inputted
1462         //since they opened the application on the time of usage. 
1463         for (int i = 0; i < repairInformationList.size(); i++) {
1464             repairInformationTable.setValueAt(repairInformationList.get(i).getchosenTenant(), i, 0);
1465             repairInformationTable.setValueAt(repairInformationList.get(i).getrepairType(), i, 1);
1466             boolean b = repairResolvedCB.isSelected();
1467             if (b) {
1468                 repairInformationTable.setValueAt("Yes", i, 2);
1469             } else {
1470                 repairInformationTable.setValueAt("No", i, 2);
1471             }
1472             // repairInformationTable.setValueAt(repairInformationList.get(i).getrepairResolvedCB(), i, 2);
1473             repairInformationTable.setValueAt(repairInformationList.get(i).getwhoResolved(), i, 3);
1474             repairInformationTable.setValueAt(repairInformationList.get(i).getwhenResolved(), i, 4);
1475             repairInformationTable.setValueAt(repairInformationList.get(i).getdescriptionOfProblem(), i, 5);
1476         }
1477     }                                                      
1478 
1479     private void repairInfoButtonMouseReleased(java.awt.event.MouseEvent evt) {                                               
1480         //This method is the event of a button. Once the button is released, the text fields that the user
1481         //uses will clear, allowing them to add more data to the ArrayList. 
1482 
1483         repairInformationList.add(new repairInformation(tenantNameRepair.getText(), repairTypeTF.getText(), repairResolvedCB.isSelected(), whoResolvedTF.getText(), whenResolvedTF.getText(), descriptionOfProblemTF.getText()));
1484         tenantNameRepair.setText("");
1485         repairTypeTF.setText("");
1486         repairResolvedCB.isSelected();
1487         whoResolvedTF.setText("");
1488         whenResolvedTF.setText("");
1489         descriptionOfProblemTF.setText("");
1490 
1491         // JFileChooser jfc = new JFileChooser();
1492         //jfc.showSaveDialog(this);
1493        /* try {
1494          //  FileWriter fw = new FileWriter(jfc.getSelectedFile());
1495          //FileWriter fw = new FileWriter("Repair Information");
1496          FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Repair-Information.txt");
1497          BufferedWriter bw = new BufferedWriter(fw);
1498          for (int i = 0; i < repairInformationList.size(); i++) {
1499          bw.write(repairInformationList.get(i).getchosenTenant()+ ":");
1500          bw.write(repairInformationList.get(i).getrepairType()+ ":");
1501          bw.write(repairInformationList.get(i).getrepairResolvedCB()+ ":");
1502          bw.write(repairInformationList.get(i).getwhoResolved()+ ":");
1503          bw.write(repairInformationList.get(i).getwhoResolved()+ ":");
1504          bw.write(repairInformationList.get(i).getwhenResolved()+ ":");
1505          bw.write(repairInformationList.get(i).getdescriptionOfProblem()+ ":");
1506 
1507          }
1508          bw.close();
1509 
1510          } catch (IOException ex) {
1511          Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1512          } 
1513          */
1514     }                                              
1515 
1516     // int nextRowToFillTenants = 0;
1517     private void addNewTenantMouseReleased(java.awt.event.MouseEvent evt) {                                           
1518         // TODO add your handling code here:
1519         //This method is the event of a button. Once the button is released, the text fields that the user
1520         //uses will clear, allowing them to add more data to the ArrayList. 
1521 
1522 
1523 
1524 
1525         try {
1526 
1527 
1528             tenantsInformationList.add(new tenantsInformation(tenantsNameTF.getText(), tenantsAddressTF.getText(), telephoneNumberTF.getText(), emailAddressTF.getText(), signedLeaseTF.getText(), endLeaseTF.getText(), Double.parseDouble(rentPaidTF.getText()), Double.parseDouble(servicesPaidTF.getText())));
1529             tenantsNameTF.setText("");
1530             tenantsAddressTF.setText("");
1531             telephoneNumberTF.setText("");
1532             emailAddressTF.setText("");
1533             signedLeaseTF.setText("");
1534             endLeaseTF.setText("");
1535             rentPaidTF.setText("");
1536             servicesPaidTF.setText("");
1537 
1538         } catch (NumberFormatException e) {
1539             JOptionPane.showMessageDialog(this,
1540                     "Rent and services paid should be numbers",
1541                     "Error",
1542                     JOptionPane.WARNING_MESSAGE);
1543         }
1544 
1545         /*
1546          //loop through arrayList and put all of hte info in the table.
1547          for (int i = 0; i < tenantsInformationList.size(); i++) {
1548          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettenantsName(), i, 0);
1549          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettenantsAddress(), i, 1);
1550          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettelephoneNumber(), i, 2);
1551          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getemailAddress(), i, 3);
1552          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getdateLeaseSigned(), i, 4);
1553          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getdateLeaseEnds(), i, 5);
1554          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getrentPaid(), i, 6);
1555          tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getservicesPaid(), i, 7);
1556 
1557          } 
1558          */
1559     }                                          
1560 
1561     private void displayTenantsInformationMouseReleased(java.awt.event.MouseEvent evt) {                                                        
1562         //This method is the event of a button. Once the button is released, the tenants information will be displayed
1563         //onto the tables for the user to see. The information shown will be the new data the user has inputted
1564         //since they opened the application on the time of usage. 
1565         for (int i = 0; i < tenantsInformationList.size(); i++) {
1566             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettenantsName(), i, 0);
1567             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettenantsAddress(), i, 1);
1568             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).gettelephoneNumber(), i, 2);
1569             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getemailAddress(), i, 3);
1570             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getdateLeaseSigned(), i, 4);
1571             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getdateLeaseEnds(), i, 5);
1572             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getrentPaid(), i, 6);
1573             tenantsInformationTable.setValueAt(tenantsInformationList.get(i).getservicesPaid(), i, 7);
1574 
1575         }
1576     }                                                       
1577 
1578     private void saveTenantsInfoButtonMouseReleased(java.awt.event.MouseEvent evt) {                                                    
1579 
1580         // JFileChooser jfc = new JFileChooser();
1581         //jfc.showSaveDialog(this);
1582 
1583         //This method is the event of a button. Once the button is released, the tenants information will be automically,
1584         //saved onto a file using FileWriter into the computer. 
1585         try {
1586             //    FileWriter fw = new FileWriter(jfc.getSelectedFile());
1587 
1588             //String userHomeFolder = System.getProperty("user.home");
1589             FileWriter fw = new FileWriter("/Library/Application Support/MainDossierForBro/Tenants-Information.txt");
1590             //BufferedWriter bw = new BufferedWriter(fw);
1591             BufferedWriter bw = new BufferedWriter(fw);
1592             System.out.println(tenantsInformationList.size());
1593             for (int i = 0; i < tenantsInformationList.size(); i++) {
1594 
1595                 bw.write(tenantsInformationList.get(i).gettenantsName() + ":");
1596                 bw.write(tenantsInformationList.get(i).gettenantsAddress() + ":");
1597                 bw.write(tenantsInformationList.get(i).gettelephoneNumber() + ":");
1598                 bw.write(tenantsInformationList.get(i).getemailAddress() + ":");
1599                 bw.write(tenantsInformationList.get(i).getdateLeaseSigned() + ":");
1600                 bw.write(tenantsInformationList.get(i).getdateLeaseEnds() + ":");
1601                 bw.write(tenantsInformationList.get(i).getrentPaid() + ":");
1602                 bw.write(tenantsInformationList.get(i).getservicesPaid() + ":");
1603 
1604             }
1605             bw.close();
1606 
1607         } catch (IOException ex) {
1608             Logger.getLogger(MainDossierGUI.class.getName()).log(Level.SEVERE, null, ex);
1609         }
1610     }                                                   
1611 
1612     private void repairResolvedCBMouseReleased(java.awt.event.MouseEvent evt) {                                               
1613         // TODO add your handling code here:
1614         // repairInformationTable.setValueAt(repairInformationList.get(i).getrepairResolvedCB(), i, 2);
1615     }                                              
1616 
1617     /**
1618      * @param args the command line arguments
1619      */
1620     public static void main(String args[]) {
1621         /* Set the Nimbus look and feel */
1622         //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
1623         /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
1624          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
1625          */
1626         try {
1627             for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
1628                 if ("Nimbus".equals(info.getName())) {
1629                     javax.swing.UIManager.setLookAndFeel(info.getClassName());
1630                     break;
1631                 }
1632             }
1633         } catch (ClassNotFoundException ex) {
1634             java.util.logging.Logger.getLogger(MainDossierGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1635         } catch (InstantiationException ex) {
1636             java.util.logging.Logger.getLogger(MainDossierGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1637         } catch (IllegalAccessException ex) {
1638             java.util.logging.Logger.getLogger(MainDossierGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1639         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
1640             java.util.logging.Logger.getLogger(MainDossierGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1641         }
1642         //</editor-fold>
1643 
1644         /* Create and display the form */
1645         java.awt.EventQueue.invokeLater(new Runnable() {
1646             public void run() {
1647                 new MainDossierGUI().setVisible(true);
1648             }
1649         });
1650     }





AUTO GENERATED BY NETBEANS FROM THIS POINT ON


 58     @SuppressWarnings("unchecked")
  59     // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
  60     private void initComponents() {
  61 
  62         jTabbedPane1 = new javax.swing.JTabbedPane();
  63         jPanel1 = new javax.swing.JPanel();
  64         jLabel1 = new javax.swing.JLabel();
  65         jLabel3 = new javax.swing.JLabel();
  66         jLabel4 = new javax.swing.JLabel();
  67         saveTenantsInfoButton = new javax.swing.JButton();
  68         tenantsNameTF = new javax.swing.JTextField();
  69         tenantsAddressTF = new javax.swing.JTextField();
  70         telephoneNumberTF = new javax.swing.JTextField();
  71         jLabel23 = new javax.swing.JLabel();
  72         emailAddressTF = new javax.swing.JTextField();
  73         jLabel24 = new javax.swing.JLabel();
  74         signedLeaseTF = new javax.swing.JTextField();
  75         jLabel25 = new javax.swing.JLabel();
  76         endLeaseTF = new javax.swing.JTextField();
  77         jLabel26 = new javax.swing.JLabel();
  78         rentPaidTF = new javax.swing.JTextField();
  79         jLabel27 = new javax.swing.JLabel();
  80         servicesPaidTF = new javax.swing.JTextField();
  81         jScrollPane4 = new javax.swing.JScrollPane();
  82         tenantsInformationTable = new javax.swing.JTable();
  83         displayTenantsInformation = new javax.swing.JButton();
  84         addNewTenant = new javax.swing.JButton();
  85         jLabel2 = new javax.swing.JLabel();
  86         jPanel2 = new javax.swing.JPanel();
  87         jLabel5 = new javax.swing.JLabel();
  88         jLabel6 = new javax.swing.JLabel();
  89         repairTypeTF = new javax.swing.JTextField();
  90         jLabel9 = new javax.swing.JLabel();
  91         repairInfoButton = new javax.swing.JButton();
  92         jLabel15 = new javax.swing.JLabel();
  93         descriptionOfProblemTF = new javax.swing.JTextField();
  94         repairResolvedCB = new javax.swing.JCheckBox();
  95         jLabel28 = new javax.swing.JLabel();
  96         whoResolvedTF = new javax.swing.JTextField();
  97         jLabel30 = new javax.swing.JLabel();
  98         whenResolvedTF = new javax.swing.JTextField();
  99         jScrollPane5 = new javax.swing.JScrollPane();
 100         repairInformationTable = new javax.swing.JTable();
 101         displayRepairInformation = new javax.swing.JButton();
 102         saveRepairInfoButton = new javax.swing.JButton();
 103         tenantNameRepair = new javax.swing.JTextField();
 104         jPanel3 = new javax.swing.JPanel();
 105         jLabel8 = new javax.swing.JLabel();
 106         jLabel10 = new javax.swing.JLabel();
 107         developmentCostTF = new javax.swing.JTextField();
 108         jLabel11 = new javax.swing.JLabel();
 109         repairBudgetTF = new javax.swing.JTextField();
 110         jLabel12 = new javax.swing.JLabel();
 111         propertyAddressTF = new javax.swing.JTextField();
 112         inputPropertyInfoButton = new javax.swing.JButton();
 113         jScrollPane6 = new javax.swing.JScrollPane();
 114         propertyInformationTable = new javax.swing.JTable();
 115         displayPropertyInformation = new javax.swing.JButton();
 116         savePropertyInfo = new javax.swing.JButton();
 117         propertyType = new javax.swing.JTextField();
 118         jPanel5 = new javax.swing.JPanel();
 119         jScrollPane3 = new javax.swing.JScrollPane();
 120         dueDatesTable = new javax.swing.JTable();
 121         jLabel19 = new javax.swing.JLabel();
 122         jLabel20 = new javax.swing.JLabel();
 123         jLabel21 = new javax.swing.JLabel();
 124         jLabel22 = new javax.swing.JLabel();
 125         taskToDo = new javax.swing.JTextField();
 126         startDate = new javax.swing.JTextField();
 127         endDate = new javax.swing.JTextField();
 128         importanceLevel = new javax.swing.JComboBox();
 129         inputDD = new javax.swing.JButton();
 130         jScrollPane2 = new javax.swing.JScrollPane();
 131         jTextArea1 = new javax.swing.JTextArea();
 132         menuBar = new javax.swing.JMenuBar();
 133         ccc = new javax.swing.JMenu();
 134         tenantOpen = new javax.swing.JMenuItem();
 135         repairOpen = new javax.swing.JMenuItem();
 136         propertyOpen = new javax.swing.JMenuItem();
 137         dueDateOpen = new javax.swing.JMenuItem();
 138         editMenu = new javax.swing.JMenu();
 139         cutMenuItem = new javax.swing.JMenuItem();
 140         copyMenuItem = new javax.swing.JMenuItem();
 141         pasteMenuItem = new javax.swing.JMenuItem();
 142         deleteMenuItem = new javax.swing.JMenuItem();
 143         helpMenu = new javax.swing.JMenu();
 144         contentsMenuItem = new javax.swing.JMenuItem();
 145         aboutMenuItem = new javax.swing.JMenuItem();
 146 
 147         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
 148         setBackground(new java.awt.Color(204, 204, 204));
 149 
 150         jTabbedPane1.setBackground(new java.awt.Color(204, 255, 255));
 151 
 152         jPanel1.setBackground(new java.awt.Color(204, 204, 204));
 153 
 154         jLabel1.setText("Tenants Name:");
 155 
 156         jLabel3.setText("Telephone number:");
 157 
 158         jLabel4.setText("Email Address:");
 159 
 160         saveTenantsInfoButton.setText("Save Changes");
 161         saveTenantsInfoButton.addMouseListener(new java.awt.event.MouseAdapter() {
 162             public void mouseReleased(java.awt.event.MouseEvent evt) {
 163                 saveTenantsInfoButtonMouseReleased(evt);
 164             }
 165         });
 166 
 167         jLabel23.setText("Tenants Address:");
 168 
 169         jLabel24.setText("Date tenant signed lease:");
 170 
 171         jLabel25.setText("Date end of lease:");
 172 
 173         jLabel26.setText("Rent Paid:");
 174 
 175         jLabel27.setText("Services Paid (Electricity, Water, Gas):");
 176 
 177         tenantsInformationTable.setModel(new javax.swing.table.DefaultTableModel(
 178             new Object [][] {
 179                 {null, null, null, null, null, null, null, null},
 180                 {null, null, null, null, null, null, null, null},
 181                 {null, null, null, null, null, null, null, null},
 182                 {null, null, null, null, null, null, null, null},
 183                 {null, null, null, null, null, null, null, null},
 184                 {null, null, null, null, null, null, null, null},
 185                 {null, null, null, null, null, null, null, null},
 186                 {null, null, null, null, null, null, null, null},
 187                 {null, null, null, null, null, null, null, null},
 188                 {null, null, null, null, null, null, null, null},
 189                 {null, null, null, null, null, null, null, null},
 190                 {null, null, null, null, null, null, null, null},
 191                 {null, null, null, null, null, null, null, null},
 192                 {null, null, null, null, null, null, null, null},
 193                 {null, null, null, null, null, null, null, null},
 194                 {null, null, null, null, null, null, null, null},
 195                 {null, null, null, null, null, null, null, null},
 196                 {null, null, null, null, null, null, null, null},
 197                 {null, null, null, null, null, null, null, null},
 198                 {null, null, null, null, null, null, null, null},
 199                 {null, null, null, null, null, null, null, null},
 200                 {null, null, null, null, null, null, null, null},
 201                 {null, null, null, null, null, null, null, null},
 202                 {null, null, null, null, null, null, null, null},
 203                 {null, null, null, null, null, null, null, null},
 204                 {null, null, null, null, null, null, null, null},
 205                 {null, null, null, null, null, null, null, null},
 206                 {null, null, null, null, null, null, null, null},
 207                 {null, null, null, null, null, null, null, null},
 208                 {null, null, null, null, null, null, null, null},
 209                 {null, null, null, null, null, null, null, null},
 210                 {null, null, null, null, null, null, null, null},
 211                 {null, null, null, null, null, null, null, null},
 212                 {null, null, null, null, null, null, null, null},
 213                 {null, null, null, null, null, null, null, null},
 214                 {null, null, null, null, null, null, null, null},
 215                 {null, null, null, null, null, null, null, null},
 216                 {null, null, null, null, null, null, null, null},
 217                 {null, null, null, null, null, null, null, null},
 218                 {null, null, null, null, null, null, null, null},
 219                 {null, null, null, null, null, null, null, null},
 220                 {null, null, null, null, null, null, null, null},
 221                 {null, null, null, null, null, null, null, null},
 222                 {null, null, null, null, null, null, null, null},
 223                 {null, null, null, null, null, null, null, null},
 224                 {null, null, null, null, null, null, null, null},
 225                 {null, null, null, null, null, null, null, null},
 226                 {null, null, null, null, null, null, null, null},
 227                 {null, null, null, null, null, null, null, null},
 228                 {null, null, null, null, null, null, null, null},
 229                 {null, null, null, null, null, null, null, null},
 230                 {null, null, null, null, null, null, null, null},
 231                 {null, null, null, null, null, null, null, null},
 232                 {null, null, null, null, null, null, null, null},
 233                 {null, null, null, null, null, null, null, null},
 234                 {null, null, null, null, null, null, null, null},
 235                 {null, null, null, null, null, null, null, null},
 236                 {null, null, null, null, null, null, null, null},
 237                 {null, null, null, null, null, null, null, null},
 238                 {null, null, null, null, null, null, null, null},
 239                 {null, null, null, null, null, null, null, null},
 240                 {null, null, null, null, null, null, null, null},
 241                 {null, null, null, null, null, null, null, null},
 242                 {null, null, null, null, null, null, null, null},
 243                 {null, null, null, null, null, null, null, null},
 244                 {null, null, null, null, null, null, null, null},
 245                 {null, null, null, null, null, null, null, null},
 246                 {null, null, null, null, null, null, null, null},
 247                 {null, null, null, null, null, null, null, null},
 248                 {null, null, null, null, null, null, null, null},
 249                 {null, null, null, null, null, null, null, null},
 250                 {null, null, null, null, null, null, null, null},
 251                 {null, null, null, null, null, null, null, null},
 252                 {null, null, null, null, null, null, null, null},
 253                 {null, null, null, null, null, null, null, null},
 254                 {null, null, null, null, null, null, null, null},
 255                 {null, null, null, null, null, null, null, null},
 256                 {null, null, null, null, null, null, null, null},
 257                 {null, null, null, null, null, null, null, null},
 258                 {null, null, null, null, null, null, null, null},
 259                 {null, null, null, null, null, null, null, null},
 260                 {null, null, null, null, null, null, null, null},
 261                 {null, null, null, null, null, null, null, null},
 262                 {null, null, null, null, null, null, null, null},
 263                 {null, null, null, null, null, null, null, null},
 264                 {null, null, null, null, null, null, null, null},
 265                 {null, null, null, null, null, null, null, null},
 266                 {null, null, null, null, null, null, null, null},
 267                 {null, null, null, null, null, null, null, null},
 268                 {null, null, null, null, null, null, null, null},
 269                 {null, null, null, null, null, null, null, null},
 270                 {null, null, null, null, null, null, null, null},
 271                 {null, null, null, null, null, null, null, null},
 272                 {null, null, null, null, null, null, null, null},
 273                 {null, null, null, null, null, null, null, null},
 274                 {null, null, null, null, null, null, null, null},
 275                 {null, null, null, null, null, null, null, null},
 276                 {null, null, null, null, null, null, null, null},
 277                 {null, null, null, null, null, null, null, null},
 278                 {null, null, null, null, null, null, null, null}
 279             },
 280             new String [] {
 281                 "Tenants Name", "Tenants Address", "Telephone Number", "Email Address", "Date: Lease Signed", "Date: Lease Ends", "Rent Paid", "Services Paid"
 282             }
 283         ));
 284         jScrollPane4.setViewportView(tenantsInformationTable);
 285         tenantsInformationTable.getColumnModel().getColumn(0).setMinWidth(200);
 286         tenantsInformationTable.getColumnModel().getColumn(0).setPreferredWidth(200);
 287         tenantsInformationTable.getColumnModel().getColumn(0).setMaxWidth(200);
 288         tenantsInformationTable.getColumnModel().getColumn(1).setMinWidth(200);
 289         tenantsInformationTable.getColumnModel().getColumn(1).setPreferredWidth(200);
 290         tenantsInformationTable.getColumnModel().getColumn(1).setMaxWidth(200);
 291         tenantsInformationTable.getColumnModel().getColumn(2).setMinWidth(150);
 292         tenantsInformationTable.getColumnModel().getColumn(2).setPreferredWidth(150);
 293         tenantsInformationTable.getColumnModel().getColumn(2).setMaxWidth(150);
 294         tenantsInformationTable.getColumnModel().getColumn(3).setMinWidth(100);
 295         tenantsInformationTable.getColumnModel().getColumn(3).setPreferredWidth(100);
 296         tenantsInformationTable.getColumnModel().getColumn(3).setMaxWidth(100);
 297         tenantsInformationTable.getColumnModel().getColumn(4).setMinWidth(120);
 298         tenantsInformationTable.getColumnModel().getColumn(4).setPreferredWidth(120);
 299         tenantsInformationTable.getColumnModel().getColumn(4).setMaxWidth(120);
 300         tenantsInformationTable.getColumnModel().getColumn(5).setMinWidth(120);
 301         tenantsInformationTable.getColumnModel().getColumn(5).setPreferredWidth(120);
 302         tenantsInformationTable.getColumnModel().getColumn(5).setMaxWidth(120);
 303         tenantsInformationTable.getColumnModel().getColumn(6).setMinWidth(150);
 304         tenantsInformationTable.getColumnModel().getColumn(6).setPreferredWidth(150);
 305         tenantsInformationTable.getColumnModel().getColumn(6).setMaxWidth(150);
 306         tenantsInformationTable.getColumnModel().getColumn(7).setMinWidth(150);
 307         tenantsInformationTable.getColumnModel().getColumn(7).setPreferredWidth(150);
 308         tenantsInformationTable.getColumnModel().getColumn(7).setMaxWidth(150);
 309 
 310         displayTenantsInformation.setText("Display Tenants Information");
 311         displayTenantsInformation.addMouseListener(new java.awt.event.MouseAdapter() {
 312             public void mouseReleased(java.awt.event.MouseEvent evt) {
 313                 displayTenantsInformationMouseReleased(evt);
 314             }
 315         });
 316 
 317         addNewTenant.setText("Add Tenant");
 318         addNewTenant.addMouseListener(new java.awt.event.MouseAdapter() {
 319             public void mouseReleased(java.awt.event.MouseEvent evt) {
 320                 addNewTenantMouseReleased(evt);
 321             }
 322         });
 323 
 324         jLabel2.setFont(new java.awt.Font("Lucida Grande", 0, 8)); // NOI18N
 325         jLabel2.setText("The spaces below must be numerals.");
 326 
 327         org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
 328         jPanel1.setLayout(jPanel1Layout);
 329         jPanel1Layout.setHorizontalGroup(
 330             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 331             .add(jPanel1Layout.createSequentialGroup()
 332                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 333                     .add(jPanel1Layout.createSequentialGroup()
 334                         .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 335                             .add(jPanel1Layout.createSequentialGroup()
 336                                 .add(28, 28, 28)
 337                                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 338                                     .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 339                                         .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 340                                             .add(jPanel1Layout.createSequentialGroup()
 341                                                 .add(15, 15, 15)
 342                                                 .add(jLabel1))
 343                                             .add(jLabel23))
 344                                         .add(jLabel3))
 345                                     .add(jPanel1Layout.createSequentialGroup()
 346                                         .add(28, 28, 28)
 347                                         .add(jLabel4)))
 348                                 .add(56, 56, 56)
 349                                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 350                                     .add(tenantsAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 351                                     .add(tenantsNameTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 352                                     .add(telephoneNumberTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 353                                     .add(emailAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 354                                 .add(67, 67, 67)
 355                                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 356                                     .add(jLabel25)
 357                                     .add(jLabel24)
 358                                     .add(jLabel26)
 359                                     .add(jLabel27)))
 360                             .add(jPanel1Layout.createSequentialGroup()
 361                                 .addContainerGap()
 362                                 .add(displayTenantsInformation)))
 363                         .add(74, 74, 74)
 364                         .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 365                             .add(jPanel1Layout.createSequentialGroup()
 366                                 .add(saveTenantsInfoButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 159, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 367                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 368                                 .add(addNewTenant))
 369                             .add(jPanel1Layout.createSequentialGroup()
 370                                 .add(6, 6, 6)
 371                                 .add(jLabel2))
 372                             .add(endLeaseTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 373                             .add(rentPaidTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 374                             .add(servicesPaidTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 375                             .add(signedLeaseTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 376                     .add(jPanel1Layout.createSequentialGroup()
 377                         .addContainerGap()
 378                         .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1187, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 379                 .addContainerGap(17, Short.MAX_VALUE))
 380         );
 381         jPanel1Layout.setVerticalGroup(
 382             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 383             .add(jPanel1Layout.createSequentialGroup()
 384                 .add(18, 18, 18)
 385                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 386                     .add(jLabel1)
 387                     .add(tenantsNameTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 388                     .add(jLabel24)
 389                     .add(signedLeaseTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 390                 .add(18, 18, 18)
 391                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 392                     .add(jLabel23)
 393                     .add(tenantsAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 394                     .add(endLeaseTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 395                     .add(jLabel25))
 396                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 397                     .add(jPanel1Layout.createSequentialGroup()
 398                         .add(2, 2, 2)
 399                         .add(jLabel2)
 400                         .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 401                             .add(jPanel1Layout.createSequentialGroup()
 402                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 403                                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 404                                     .add(jLabel3)
 405                                     .add(jLabel26)))
 406                             .add(jPanel1Layout.createSequentialGroup()
 407                                 .add(6, 6, 6)
 408                                 .add(rentPaidTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
 409                     .add(jPanel1Layout.createSequentialGroup()
 410                         .add(18, 18, 18)
 411                         .add(telephoneNumberTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 412                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 413                     .add(jPanel1Layout.createSequentialGroup()
 414                         .add(19, 19, 19)
 415                         .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 416                             .add(jLabel4)
 417                             .add(jLabel27)
 418                             .add(servicesPaidTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 419                     .add(jPanel1Layout.createSequentialGroup()
 420                         .add(18, 18, 18)
 421                         .add(emailAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 422                 .add(25, 25, 25)
 423                 .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 424                     .add(displayTenantsInformation)
 425                     .add(saveTenantsInfoButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 426                     .add(addNewTenant))
 427                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
 428                 .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 429                 .addContainerGap(45, Short.MAX_VALUE))
 430         );
 431 
 432         jTabbedPane1.addTab("Tenants Information", jPanel1);
 433 
 434         jLabel5.setText("Tenant Name:");
 435 
 436         jLabel6.setText("Repair was resolved?");
 437 
 438         jLabel9.setText("Repair Type:");
 439 
 440         repairInfoButton.setText("Input Repair Information");
 441         repairInfoButton.addMouseListener(new java.awt.event.MouseAdapter() {
 442             public void mouseReleased(java.awt.event.MouseEvent evt) {
 443                 repairInfoButtonMouseReleased(evt);
 444             }
 445         });
 446 
 447         jLabel15.setText("Description of problem:");
 448 
 449         repairResolvedCB.setText("Yes");
 450         repairResolvedCB.addMouseListener(new java.awt.event.MouseAdapter() {
 451             public void mouseReleased(java.awt.event.MouseEvent evt) {
 452                 repairResolvedCBMouseReleased(evt);
 453             }
 454         });
 455 
 456         jLabel28.setText("By whom?");
 457 
 458         jLabel30.setText("When?");
 459 
 460         repairInformationTable.setModel(new javax.swing.table.DefaultTableModel(
 461             new Object [][] {
 462                 {null, null, null, null, null, null},
 463                 {null, null, null, null, null, null},
 464                 {null, null, null, null, null, null},
 465                 {null, null, null, null, null, null},
 466                 {null, null, null, null, null, null},
 467                 {null, null, null, null, null, null},
 468                 {null, null, null, null, null, null},
 469                 {null, null, null, null, null, null},
 470                 {null, null, null, null, null, null},
 471                 {null, null, null, null, null, null},
 472                 {null, null, null, null, null, null},
 473                 {null, null, null, null, null, null},
 474                 {null, null, null, null, null, null},
 475                 {null, null, null, null, null, null},
 476                 {null, null, null, null, null, null},
 477                 {null, null, null, null, null, null},
 478                 {null, null, null, null, null, null},
 479                 {null, null, null, null, null, null},
 480                 {null, null, null, null, null, null},
 481                 {null, null, null, null, null, null},
 482                 {null, null, null, null, null, null},
 483                 {null, null, null, null, null, null},
 484                 {null, null, null, null, null, null},
 485                 {null, null, null, null, null, null},
 486                 {null, null, null, null, null, null},
 487                 {null, null, null, null, null, null},
 488                 {null, null, null, null, null, null},
 489                 {null, null, null, null, null, null},
 490                 {null, null, null, null, null, null},
 491                 {null, null, null, null, null, null},
 492                 {null, null, null, null, null, null},
 493                 {null, null, null, null, null, null},
 494                 {null, null, null, null, null, null},
 495                 {null, null, null, null, null, null},
 496                 {null, null, null, null, null, null},
 497                 {null, null, null, null, null, null},
 498                 {null, null, null, null, null, null},
 499                 {null, null, null, null, null, null},
 500                 {null, null, null, null, null, null},
 501                 {null, null, null, null, null, null},
 502                 {null, null, null, null, null, null},
 503                 {null, null, null, null, null, null},
 504                 {null, null, null, null, null, null},
 505                 {null, null, null, null, null, null},
 506                 {null, null, null, null, null, null},
 507                 {null, null, null, null, null, null},
 508                 {null, null, null, null, null, null},
 509                 {null, null, null, null, null, null},
 510                 {null, null, null, null, null, null},
 511                 {null, null, null, null, null, null},
 512                 {null, null, null, null, null, null},
 513                 {null, null, null, null, null, null},
 514                 {null, null, null, null, null, null},
 515                 {null, null, null, null, null, null},
 516                 {null, null, null, null, null, null},
 517                 {null, null, null, null, null, null},
 518                 {null, null, null, null, null, null},
 519                 {null, null, null, null, null, null},
 520                 {null, null, null, null, null, null},
 521                 {null, null, null, null, null, null},
 522                 {null, null, null, null, null, null},
 523                 {null, null, null, null, null, null},
 524                 {null, null, null, null, null, null},
 525                 {null, null, null, null, null, null},
 526                 {null, null, null, null, null, null},
 527                 {null, null, null, null, null, null},
 528                 {null, null, null, null, null, null},
 529                 {null, null, null, null, null, null},
 530                 {null, null, null, null, null, null},
 531                 {null, null, null, null, null, null},
 532                 {null, null, null, null, null, null},
 533                 {null, null, null, null, null, null},
 534                 {null, null, null, null, null, null},
 535                 {null, null, null, null, null, null},
 536                 {null, null, null, null, null, null},
 537                 {null, null, null, null, null, null},
 538                 {null, null, null, null, null, null},
 539                 {null, null, null, null, null, null},
 540                 {null, null, null, null, null, null},
 541                 {null, null, null, null, null, null},
 542                 {null, null, null, null, null, null},
 543                 {null, null, null, null, null, null},
 544                 {null, null, null, null, null, null},
 545                 {null, null, null, null, null, null},
 546                 {null, null, null, null, null, null},
 547                 {null, null, null, null, null, null},
 548                 {null, null, null, null, null, null},
 549                 {null, null, null, null, null, null},
 550                 {null, null, null, null, null, null},
 551                 {null, null, null, null, null, null},
 552                 {null, null, null, null, null, null},
 553                 {null, null, null, null, null, null},
 554                 {null, null, null, null, null, null},
 555                 {null, null, null, null, null, null},
 556                 {null, null, null, null, null, null},
 557                 {null, null, null, null, null, null},
 558                 {null, null, null, null, null, null},
 559                 {null, null, null, null, null, null},
 560                 {null, null, null, null, null, null},
 561                 {null, null, null, null, null, null}
 562             },
 563             new String [] {
 564                 "Chosen Tenant", "Repair Type", "Repair Resolved", "By Whom", "When", "Description of Problem"
 565             }
 566         ));
 567         jScrollPane5.setViewportView(repairInformationTable);
 568         repairInformationTable.getColumnModel().getColumn(0).setMinWidth(150);
 569         repairInformationTable.getColumnModel().getColumn(0).setPreferredWidth(150);
 570         repairInformationTable.getColumnModel().getColumn(0).setMaxWidth(150);
 571         repairInformationTable.getColumnModel().getColumn(1).setMinWidth(100);
 572         repairInformationTable.getColumnModel().getColumn(1).setPreferredWidth(100);
 573         repairInformationTable.getColumnModel().getColumn(1).setMaxWidth(100);
 574         repairInformationTable.getColumnModel().getColumn(2).setMinWidth(100);
 575         repairInformationTable.getColumnModel().getColumn(2).setPreferredWidth(100);
 576         repairInformationTable.getColumnModel().getColumn(2).setMaxWidth(100);
 577         repairInformationTable.getColumnModel().getColumn(3).setMinWidth(80);
 578         repairInformationTable.getColumnModel().getColumn(3).setPreferredWidth(80);
 579         repairInformationTable.getColumnModel().getColumn(3).setMaxWidth(80);
 580         repairInformationTable.getColumnModel().getColumn(4).setMinWidth(80);
 581         repairInformationTable.getColumnModel().getColumn(4).setPreferredWidth(80);
 582         repairInformationTable.getColumnModel().getColumn(4).setMaxWidth(80);
 583         repairInformationTable.getColumnModel().getColumn(5).setMinWidth(700);
 584         repairInformationTable.getColumnModel().getColumn(5).setPreferredWidth(700);
 585         repairInformationTable.getColumnModel().getColumn(5).setMaxWidth(700);
 586 
 587         displayRepairInformation.setText("Display Repair Information");
 588         displayRepairInformation.addMouseListener(new java.awt.event.MouseAdapter() {
 589             public void mouseReleased(java.awt.event.MouseEvent evt) {
 590                 displayRepairInformationMouseReleased(evt);
 591             }
 592         });
 593 
 594         saveRepairInfoButton.setText("Save Changes");
 595         saveRepairInfoButton.addMouseListener(new java.awt.event.MouseAdapter() {
 596             public void mouseReleased(java.awt.event.MouseEvent evt) {
 597                 saveRepairInfoButtonMouseReleased(evt);
 598             }
 599         });
 600 
 601         org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
 602         jPanel2.setLayout(jPanel2Layout);
 603         jPanel2Layout.setHorizontalGroup(
 604             jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 605             .add(jPanel2Layout.createSequentialGroup()
 606                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 607                     .add(jPanel2Layout.createSequentialGroup()
 608                         .add(31, 31, 31)
 609                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 610                             .add(displayRepairInformation)
 611                             .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1071, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 612                     .add(jPanel2Layout.createSequentialGroup()
 613                         .add(25, 25, 25)
 614                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 615                             .add(jLabel9)
 616                             .add(jLabel5)
 617                             .add(jLabel6))
 618                         .add(53, 53, 53)
 619                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 620                             .add(jPanel2Layout.createSequentialGroup()
 621                                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 622                                     .add(jPanel2Layout.createSequentialGroup()
 623                                         .add(repairResolvedCB)
 624                                         .add(18, 18, 18)
 625                                         .add(jLabel28))
 626                                     .add(jLabel30))
 627                                 .add(18, 18, 18)
 628                                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 629                                     .add(whoResolvedTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 108, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 630                                     .add(whenResolvedTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 108, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 631                             .add(repairTypeTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 632                             .add(jPanel2Layout.createSequentialGroup()
 633                                 .add(tenantNameRepair, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 252, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 634                                 .add(69, 69, 69)
 635                                 .add(jLabel15)))
 636                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
 637                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 638                             .add(jPanel2Layout.createSequentialGroup()
 639                                 .add(saveRepairInfoButton)
 640                                 .add(18, 18, 18)
 641                                 .add(repairInfoButton))
 642                             .add(descriptionOfProblemTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 343, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
 643                 .addContainerGap(108, Short.MAX_VALUE))
 644         );
 645         jPanel2Layout.setVerticalGroup(
 646             jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 647             .add(jPanel2Layout.createSequentialGroup()
 648                 .addContainerGap()
 649                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 650                     .add(jPanel2Layout.createSequentialGroup()
 651                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 652                             .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 653                                 .add(tenantNameRepair, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 654                                 .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 655                             .add(jLabel15))
 656                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 657                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 658                             .add(repairTypeTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 659                             .add(jLabel9))
 660                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 661                             .add(jPanel2Layout.createSequentialGroup()
 662                                 .add(18, 18, 18)
 663                                 .add(jLabel6))
 664                             .add(jPanel2Layout.createSequentialGroup()
 665                                 .add(26, 26, 26)
 666                                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 667                                     .add(repairResolvedCB)
 668                                     .add(jLabel28)
 669                                     .add(whoResolvedTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
 670                         .add(18, 18, 18)
 671                         .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 672                             .add(jLabel30)
 673                             .add(whenResolvedTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 674                         .add(21, 21, 21))
 675                     .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
 676                         .add(descriptionOfProblemTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 168, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 677                         .add(18, 18, 18)))
 678                 .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 679                     .add(saveRepairInfoButton)
 680                     .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 681                         .add(repairInfoButton)))
 682                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 683                 .add(displayRepairInformation)
 684                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
 685                 .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 686                 .add(53, 53, 53))
 687         );
 688 
 689         jTabbedPane1.addTab("Repair Information", jPanel2);
 690 
 691         jLabel8.setText("Property Type:");
 692 
 693         jLabel10.setText("Development Cost:");
 694 
 695         jLabel11.setText("Repair Budget:");
 696 
 697         jLabel12.setText("Address: ");
 698 
 699         inputPropertyInfoButton.setText("Input Property Information");
 700         inputPropertyInfoButton.addMouseListener(new java.awt.event.MouseAdapter() {
 701             public void mouseReleased(java.awt.event.MouseEvent evt) {
 702                 inputPropertyInfoButtonMouseReleased(evt);
 703             }
 704         });
 705 
 706         propertyInformationTable.setModel(new javax.swing.table.DefaultTableModel(
 707             new Object [][] {
 708                 {null, null, null, null},
 709                 {null, null, null, null},
 710                 {null, null, null, null},
 711                 {null, null, null, null},
 712                 {null, null, null, null},
 713                 {null, null, null, null},
 714                 {null, null, null, null},
 715                 {null, null, null, null},
 716                 {null, null, null, null},
 717                 {null, null, null, null},
 718                 {null, null, null, null},
 719                 {null, null, null, null},
 720                 {null, null, null, null},
 721                 {null, null, null, null},
 722                 {null, null, null, null},
 723                 {null, null, null, null},
 724                 {null, null, null, null},
 725                 {null, null, null, null},
 726                 {null, null, null, null},
 727                 {null, null, null, null},
 728                 {null, null, null, null},
 729                 {null, null, null, null},
 730                 {null, null, null, null},
 731                 {null, null, null, null},
 732                 {null, null, null, null},
 733                 {null, null, null, null},
 734                 {null, null, null, null},
 735                 {null, null, null, null},
 736                 {null, null, null, null},
 737                 {null, null, null, null},
 738                 {null, null, null, null},
 739                 {null, null, null, null},
 740                 {null, null, null, null},
 741                 {null, null, null, null},
 742                 {null, null, null, null},
 743                 {null, null, null, null},
 744                 {null, null, null, null},
 745                 {null, null, null, null},
 746                 {null, null, null, null},
 747                 {null, null, null, null},
 748                 {null, null, null, null},
 749                 {null, null, null, null},
 750                 {null, null, null, null},
 751                 {null, null, null, null},
 752                 {null, null, null, null},
 753                 {null, null, null, null},
 754                 {null, null, null, null},
 755                 {null, null, null, null},
 756                 {null, null, null, null},
 757                 {null, null, null, null},
 758                 {null, null, null, null},
 759                 {null, null, null, null},
 760                 {null, null, null, null},
 761                 {null, null, null, null},
 762                 {null, null, null, null},
 763                 {null, null, null, null},
 764                 {null, null, null, null},
 765                 {null, null, null, null},
 766                 {null, null, null, null},
 767                 {null, null, null, null},
 768                 {null, null, null, null},
 769                 {null, null, null, null},
 770                 {null, null, null, null},
 771                 {null, null, null, null},
 772                 {null, null, null, null},
 773                 {null, null, null, null},
 774                 {null, null, null, null},
 775                 {null, null, null, null},
 776                 {null, null, null, null},
 777                 {null, null, null, null},
 778                 {null, null, null, null},
 779                 {null, null, null, null},
 780                 {null, null, null, null},
 781                 {null, null, null, null},
 782                 {null, null, null, null},
 783                 {null, null, null, null},
 784                 {null, null, null, null},
 785                 {null, null, null, null},
 786                 {null, null, null, null},
 787                 {null, null, null, null},
 788                 {null, null, null, null},
 789                 {null, null, null, null},
 790                 {null, null, null, null},
 791                 {null, null, null, null},
 792                 {null, null, null, null},
 793                 {null, null, null, null},
 794                 {null, null, null, null},
 795                 {null, null, null, null},
 796                 {null, null, null, null},
 797                 {null, null, null, null},
 798                 {null, null, null, null},
 799                 {null, null, null, null},
 800                 {null, null, null, null},
 801                 {null, null, null, null},
 802                 {null, null, null, null},
 803                 {null, null, null, null},
 804                 {null, null, null, null},
 805                 {null, null, null, null},
 806                 {null, null, null, null},
 807                 {null, null, null, null}
 808             },
 809             new String [] {
 810                 "Property Type", "Development Cost", "Repair Budget", "Address"
 811             }
 812         ));
 813         jScrollPane6.setViewportView(propertyInformationTable);
 814         propertyInformationTable.getColumnModel().getColumn(0).setMinWidth(200);
 815         propertyInformationTable.getColumnModel().getColumn(0).setPreferredWidth(200);
 816         propertyInformationTable.getColumnModel().getColumn(0).setMaxWidth(200);
 817         propertyInformationTable.getColumnModel().getColumn(1).setMinWidth(300);
 818         propertyInformationTable.getColumnModel().getColumn(1).setPreferredWidth(300);
 819         propertyInformationTable.getColumnModel().getColumn(1).setMaxWidth(300);
 820         propertyInformationTable.getColumnModel().getColumn(2).setMinWidth(200);
 821         propertyInformationTable.getColumnModel().getColumn(2).setPreferredWidth(200);
 822         propertyInformationTable.getColumnModel().getColumn(2).setMaxWidth(200);
 823         propertyInformationTable.getColumnModel().getColumn(3).setMinWidth(530);
 824         propertyInformationTable.getColumnModel().getColumn(3).setPreferredWidth(530);
 825         propertyInformationTable.getColumnModel().getColumn(3).setMaxWidth(530);
 826 
 827         displayPropertyInformation.setText("Display Property Information");
 828         displayPropertyInformation.addMouseListener(new java.awt.event.MouseAdapter() {
 829             public void mouseReleased(java.awt.event.MouseEvent evt) {
 830                 displayPropertyInformationMouseReleased(evt);
 831             }
 832         });
 833 
 834         savePropertyInfo.setText("Save Changes");
 835         savePropertyInfo.addMouseListener(new java.awt.event.MouseAdapter() {
 836             public void mouseReleased(java.awt.event.MouseEvent evt) {
 837                 savePropertyInfoMouseReleased(evt);
 838             }
 839         });
 840 
 841         org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
 842         jPanel3.setLayout(jPanel3Layout);
 843         jPanel3Layout.setHorizontalGroup(
 844             jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 845             .add(jPanel3Layout.createSequentialGroup()
 846                 .add(50, 50, 50)
 847                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 848                     .add(jLabel10)
 849                     .add(org.jdesktop.layout.GroupLayout.TRAILING, jLabel8)
 850                     .add(org.jdesktop.layout.GroupLayout.TRAILING, jLabel11))
 851                 .add(56, 56, 56)
 852                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
 853                     .add(developmentCostTF, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
 854                     .add(repairBudgetTF)
 855                     .add(propertyType))
 856                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 857                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
 858                     .add(jPanel3Layout.createSequentialGroup()
 859                         .add(jLabel12)
 860                         .add(18, 18, 18)
 861                         .add(propertyAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 251, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 862                         .add(529, 529, 529))
 863                     .add(jPanel3Layout.createSequentialGroup()
 864                         .add(savePropertyInfo)
 865                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
 866                         .add(inputPropertyInfoButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 199, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 867                         .add(482, 482, 482))))
 868             .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
 869                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 870                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 871                     .add(displayPropertyInformation)
 872                     .add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1171, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 873                 .add(73, 73, 73))
 874         );
 875         jPanel3Layout.setVerticalGroup(
 876             jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 877             .add(jPanel3Layout.createSequentialGroup()
 878                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 879                     .add(jPanel3Layout.createSequentialGroup()
 880                         .add(12, 12, 12)
 881                         .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 882                             .add(jLabel8)
 883                             .add(jLabel12)
 884                             .add(propertyType, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
 885                         .add(18, 18, 18)
 886                         .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 887                             .add(jLabel10)
 888                             .add(developmentCostTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 889                     .add(jPanel3Layout.createSequentialGroup()
 890                         .addContainerGap()
 891                         .add(propertyAddressTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 91, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
 892                 .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 893                     .add(jPanel3Layout.createSequentialGroup()
 894                         .add(22, 22, 22)
 895                         .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 896                             .add(repairBudgetTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 897                             .add(jLabel11)))
 898                     .add(jPanel3Layout.createSequentialGroup()
 899                         .add(18, 18, 18)
 900                         .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 901                             .add(inputPropertyInfoButton)
 902                             .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
 903                                 .add(savePropertyInfo)))))
 904                 .add(18, 18, 18)
 905                 .add(displayPropertyInformation)
 906                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 907                 .add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 499, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
 908                 .add(58, 58, 58))
 909         );
 910 
 911         jTabbedPane1.addTab("Property Information", jPanel3);
 912 
 913         dueDatesTable.setModel(new javax.swing.table.DefaultTableModel(
 914             new Object [][] {
 915                 {null, null, null, null},
 916                 {null, null, null, null},
 917                 {null, null, null, null},
 918                 {null, null, null, null},
 919                 {null, null, null, null},
 920                 {null, null, null, null},
 921                 {null, null, null, null},
 922                 {null, null, null, null},
 923                 {null, null, null, null},
 924                 {null, null, null, null},
 925                 {null, null, null, null},
 926                 {null, null, null, null},
 927                 {null, null, null, null},
 928                 {null, null, null, null},
 929                 {null, null, null, null},
 930                 {null, null, null, null},
 931                 {null, null, null, null},
 932                 {null, null, null, null},
 933                 {null, null, null, null},
 934                 {null, null, null, null},
 935                 {null, null, null, null},
 936                 {null, null, null, null},
 937                 {null, null, null, null},
 938                 {null, null, null, null},
 939                 {null, null, null, null},
 940                 {null, null, null, null},
 941                 {null, null, null, null},
 942                 {null, null, null, null},
 943                 {null, null, null, null},
 944                 {null, null, null, null},
 945                 {null, null, null, null},
 946                 {null, null, null, null},
 947                 {null, null, null, null},
 948                 {null, null, null, null},
 949                 {null, null, null, null},
 950                 {null, null, null, null},
 951                 {null, null, null, null},
 952                 {null, null, null, null},
 953                 {null, null, null, null},
 954                 {null, null, null, null},
 955                 {null, null, null, null},
 956                 {null, null, null, null},
 957                 {null, null, null, null},
 958                 {null, null, null, null},
 959                 {null, null, null, null},
 960                 {null, null, null, null},
 961                 {null, null, null, null},
 962                 {null, null, null, null},
 963                 {null, null, null, null},
 964                 {null, null, null, null},
 965                 {null, null, null, null},
 966                 {null, null, null, null},
 967                 {null, null, null, null},
 968                 {null, null, null, null},
 969                 {null, null, null, null},
 970                 {null, null, null, null},
 971                 {null, null, null, null},
 972                 {null, null, null, null},
 973                 {null, null, null, null},
 974                 {null, null, null, null},
 975                 {null, null, null, null},
 976                 {null, null, null, null},
 977                 {null, null, null, null},
 978                 {null, null, null, null},
 979                 {null, null, null, null},
 980                 {null, null, null, null},
 981                 {null, null, null, null},
 982                 {null, null, null, null},
 983                 {null, null, null, null},
 984                 {null, null, null, null},
 985                 {null, null, null, null},
 986                 {null, null, null, null},
 987                 {null, null, null, null},
 988                 {null, null, null, null},
 989                 {null, null, null, null},
 990                 {null, null, null, null},
 991                 {null, null, null, null},
 992                 {null, null, null, null},
 993                 {null, null, null, null},
 994                 {null, null, null, null},
 995                 {null, null, null, null},
 996                 {null, null, null, null},
 997                 {null, null, null, null},
 998                 {null, null, null, null},
 999                 {null, null, null, null},
1000                 {null, null, null, null},
1001                 {null, null, null, null},
1002                 {null, null, null, null},
1003                 {null, null, null, null},
1004                 {null, null, null, null},
1005                 {null, null, null, null},
1006                 {null, null, null, null},
1007                 {null, null, null, null},
1008                 {null, null, null, null},
1009                 {null, null, null, null},
1010                 {null, null, null, null},
1011                 {null, null, null, null},
1012                 {null, null, null, null},
1013                 {null, null, null, null}
1014             },
1015             new String [] {
1016                 "Task", "Start Date", "Due Date", "Importance"
1017             }
1018         ));
1019         jScrollPane3.setViewportView(dueDatesTable);
1020         dueDatesTable.getColumnModel().getColumn(0).setMinWidth(300);
1021         dueDatesTable.getColumnModel().getColumn(0).setPreferredWidth(300);
1022         dueDatesTable.getColumnModel().getColumn(0).setMaxWidth(300);
1023 
1024         jLabel19.setText("Task to do:");
1025 
1026         jLabel20.setText("Start Date:");
1027 
1028         jLabel21.setText("Due Date:");
1029 
1030         jLabel22.setText("Level of Importance:");
1031 
1032         importanceLevel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4" }));
1033 
1034         inputDD.setText("Enter");
1035         inputDD.addMouseListener(new java.awt.event.MouseAdapter() {
1036             public void mouseReleased(java.awt.event.MouseEvent evt) {
1037                 inputDDMouseReleased(evt);
1038             }
1039         });
1040 
1041         org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);
1042         jPanel5.setLayout(jPanel5Layout);
1043         jPanel5Layout.setHorizontalGroup(
1044             jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
1045             .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()
1046                 .add(39, 39, 39)
1047                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
1048                     .add(jLabel19)
1049                     .add(jLabel20)
1050                     .add(jLabel21)
1051                     .add(jLabel22))
1052                 .add(18, 18, 18)
1053                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
1054                     .add(startDate)
1055                     .add(inputDD, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
1056                     .add(endDate)
1057                     .add(importanceLevel, 0, 102, Short.MAX_VALUE)
1058                     .add(taskToDo))
1059                 .add(120, 120, 120)
1060                 .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 722, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
1061                 .addContainerGap(81, Short.MAX_VALUE))
1062         );
1063         jPanel5Layout.setVerticalGroup(
1064             jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
1065             .add(jPanel5Layout.createSequentialGroup()
1066                 .add(30, 30, 30)
1067                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
1068                     .add(jLabel19)
1069                     .add(taskToDo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
1070                 .add(25, 25, 25)
1071                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
1072                     .add(jLabel20)
1073                     .add(startDate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
1074                 .add(26, 26, 26)
1075                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
1076                     .add(jLabel21)
1077                     .add(endDate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
1078                 .add(25, 25, 25)
1079                 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
1080                     .add(jLabel22)
1081                     .add(importanceLevel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
1082                 .add(42, 42, 42)
1083                 .add(inputDD)
1084                 .addContainerGap(428, Short.MAX_VALUE))
1085             .add(jPanel5Layout.createSequentialGroup()
1086                 .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 699, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
1087                 .add(0, 0, Short.MAX_VALUE))
1088         );
1089 
1090         jTabbedPane1.addTab("Due Dates", jPanel5);
1091 
1092         jTextArea1.setColumns(20);
1093         jTextArea1.setRows(5);
1094         jScrollPane2.setViewportView(jTextArea1);
1095 
1096         ccc.setMnemonic('f');
1097         ccc.setText("File");
1098 
1099         tenantOpen.setText("Open Tenant Info");
1100         tenantOpen.addMouseListener(new java.awt.event.MouseAdapter() {
1101             public void mouseReleased(java.awt.event.MouseEvent evt) {
1102                 tenantOpenMouseReleased(evt);
1103             }
1104         });
1105         ccc.add(tenantOpen);
1106 
1107         repairOpen.setMnemonic('o');
1108         repairOpen.setText("Open Repair Info");
1109         repairOpen.addMouseListener(new java.awt.event.MouseAdapter() {
1110             public void mouseReleased(java.awt.event.MouseEvent evt) {
1111                 repairOpenMouseReleased(evt);
1112             }
1113         });
1114         ccc.add(repairOpen);
1115 
1116         propertyOpen.setText("Open Property Info");
1117         propertyOpen.addMouseListener(new java.awt.event.MouseAdapter() {
1118             public void mousePressed(java.awt.event.MouseEvent evt) {
1119                 propertyOpenMousePressed(evt);
1120             }
1121             public void mouseReleased(java.awt.event.MouseEvent evt) {
1122                 propertyOpenMouseReleased(evt);
1123             }
1124         });
1125         ccc.add(propertyOpen);
1126 
1127         dueDateOpen.setText("Open Due Date Info");
1128         dueDateOpen.addMouseListener(new java.awt.event.MouseAdapter() {
1129             public void mouseReleased(java.awt.event.MouseEvent evt) {
1130                 dueDateOpenMouseReleased(evt);
1131             }
1132         });
1133         ccc.add(dueDateOpen);
1134 
1135         menuBar.add(ccc);
1136 
1137         editMenu.setMnemonic('e');
1138         editMenu.setText("Edit");
1139 
1140         cutMenuItem.setMnemonic('t');
1141         cutMenuItem.setText("Cut");
1142         editMenu.add(cutMenuItem);
1143 
1144         copyMenuItem.setMnemonic('y');
1145         copyMenuItem.setText("Copy");
1146         editMenu.add(copyMenuItem);
1147 
1148         pasteMenuItem.setMnemonic('p');
1149         pasteMenuItem.setText("Paste");
1150         editMenu.add(pasteMenuItem);
1151 
1152         deleteMenuItem.setMnemonic('d');
1153         deleteMenuItem.setText("Delete");
1154         editMenu.add(deleteMenuItem);
1155 
1156         menuBar.add(editMenu);
1157 
1158         helpMenu.setMnemonic('h');
1159         helpMenu.setText("Help");
1160 
1161         contentsMenuItem.setMnemonic('c');
1162         contentsMenuItem.setText("Contents");
1163         helpMenu.add(contentsMenuItem);
1164 
1165         aboutMenuItem.setMnemonic('a');
1166         aboutMenuItem.setText("About");
1167         helpMenu.add(aboutMenuItem);
1168 
1169         menuBar.add(helpMenu);
1170 
1171         setJMenuBar(menuBar);
1172 
1173         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
1174         getContentPane().setLayout(layout);
1175         layout.setHorizontalGroup(
1176             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
1177             .add(layout.createSequentialGroup()
1178                 .addContainerGap()
1179                 .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
1180                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
1181         );
1182         layout.setVerticalGroup(
1183             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
1184             .add(layout.createSequentialGroup()
1185                 .add(16, 16, 16)
1186                 .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 762, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
1187                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
1188         );
1189 
1190         pack();
1191     }// 
1651     // Variables declaration - do not modify                     
1652     private javax.swing.JMenuItem aboutMenuItem;
1653     private javax.swing.JButton addNewTenant;
1654     private javax.swing.JMenu ccc;
1655     private javax.swing.JMenuItem contentsMenuItem;
1656     private javax.swing.JMenuItem copyMenuItem;
1657     private javax.swing.JMenuItem cutMenuItem;
1658     private javax.swing.JMenuItem deleteMenuItem;
1659     private javax.swing.JTextField descriptionOfProblemTF;
1660     private javax.swing.JTextField developmentCostTF;
1661     private javax.swing.JButton displayPropertyInformation;
1662     private javax.swing.JButton displayRepairInformation;
1663     private javax.swing.JButton displayTenantsInformation;
1664     private javax.swing.JMenuItem dueDateOpen;
1665     private javax.swing.JTable dueDatesTable;
1666     private javax.swing.JMenu editMenu;
1667     private javax.swing.JTextField emailAddressTF;
1668     private javax.swing.JTextField endDate;
1669     private javax.swing.JTextField endLeaseTF;
1670     private javax.swing.JMenu helpMenu;
1671     private javax.swing.JComboBox importanceLevel;
1672     private javax.swing.JButton inputDD;
1673     private javax.swing.JButton inputPropertyInfoButton;
1674     private javax.swing.JLabel jLabel1;
1675     private javax.swing.JLabel jLabel10;
1676     private javax.swing.JLabel jLabel11;
1677     private javax.swing.JLabel jLabel12;
1678     private javax.swing.JLabel jLabel15;
1679     private javax.swing.JLabel jLabel19;
1680     private javax.swing.JLabel jLabel2;
1681     private javax.swing.JLabel jLabel20;
1682     private javax.swing.JLabel jLabel21;
1683     private javax.swing.JLabel jLabel22;
1684     private javax.swing.JLabel jLabel23;
1685     private javax.swing.JLabel jLabel24;
1686     private javax.swing.JLabel jLabel25;
1687     private javax.swing.JLabel jLabel26;
1688     private javax.swing.JLabel jLabel27;
1689     private javax.swing.JLabel jLabel28;
1690     private javax.swing.JLabel jLabel3;
1691     private javax.swing.JLabel jLabel30;
1692     private javax.swing.JLabel jLabel4;
1693     private javax.swing.JLabel jLabel5;
1694     private javax.swing.JLabel jLabel6;
1695     private javax.swing.JLabel jLabel8;
1696     private javax.swing.JLabel jLabel9;
1697     private javax.swing.JPanel jPanel1;
1698     private javax.swing.JPanel jPanel2;
1699     private javax.swing.JPanel jPanel3;
1700     private javax.swing.JPanel jPanel5;
1701     private javax.swing.JScrollPane jScrollPane2;
1702     private javax.swing.JScrollPane jScrollPane3;
1703     private javax.swing.JScrollPane jScrollPane4;
1704     private javax.swing.JScrollPane jScrollPane5;
1705     private javax.swing.JScrollPane jScrollPane6;
1706     private javax.swing.JTabbedPane jTabbedPane1;
1707     private javax.swing.JTextArea jTextArea1;
1708     private javax.swing.JMenuBar menuBar;
1709     private javax.swing.JMenuItem pasteMenuItem;
1710     private javax.swing.JTextField propertyAddressTF;
1711     private javax.swing.JTable propertyInformationTable;
1712     private javax.swing.JMenuItem propertyOpen;
1713     private javax.swing.JTextField propertyType;
1714     private javax.swing.JTextField rentPaidTF;
1715     private javax.swing.JTextField repairBudgetTF;
1716     private javax.swing.JButton repairInfoButton;
1717     private javax.swing.JTable repairInformationTable;
1718     private javax.swing.JMenuItem repairOpen;
1719     private javax.swing.JCheckBox repairResolvedCB;
1720     private javax.swing.JTextField repairTypeTF;
1721     private javax.swing.JButton savePropertyInfo;
1722     private javax.swing.JButton saveRepairInfoButton;
1723     private javax.swing.JButton saveTenantsInfoButton;
1724     private javax.swing.JTextField servicesPaidTF;
1725     private javax.swing.JTextField signedLeaseTF;
1726     private javax.swing.JTextField startDate;
1727     private javax.swing.JTextField taskToDo;
1728     private javax.swing.JTextField telephoneNumberTF;
1729     private javax.swing.JTextField tenantNameRepair;
1730     private javax.swing.JMenuItem tenantOpen;
1731     private javax.swing.JTextField tenantsAddressTF;
1732     private javax.swing.JTable tenantsInformationTable;
1733     private javax.swing.JTextField tenantsNameTF;
1734     private javax.swing.JTextField whenResolvedTF;
1735     private javax.swing.JTextField whoResolvedTF;
1736     // End of variables declaration                   
1737 }