package tmcsim.client.cadclientgui.screens; import java.awt.Color; import java.awt.Dimension; import java.awt.Event; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.rmi.RemoteException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Stack; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.AbstractAction; import javax.swing.ActionMap; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.InputMap; import javax.swing.JButton; import javax.swing.JTextArea; import javax.swing.JTextPane; import javax.swing.KeyStroke; import javax.swing.ListSelectionModel; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.table.DefaultTableModel; import javax.swing.text.BadLocationException; import javax.swing.text.StyledDocument; import spikes.TextComponentDemo; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_ADD_INFO; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_CALLBACK; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_CALLER; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_GEN_INFO; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_INFO; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_LOC; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_TABLE; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_TIMES; import tmcsim.client.cadclientgui.enums.CADDataEnums.INC_VAL; import tmcsim.client.cadclientgui.enums.ComboBoxConstants; import tmcsim.simulationmanager.model.LogEntryCellRenderer; /** * This class contains the view and controller for the IncidentViewer screen. * The view is built using a GUI builder plug-in, and the controller uses * listeners to control how the view and data act. * * @author Stuart */ public class IncidentViewer extends javax.swing.JFrame { Stack stack; SimpleDateFormat dateFormatDate; SimpleDateFormat dateFormatTime; int incidentId; /** * Creates new form IncidentViewer */ public IncidentViewer(int incidentId) { this.incidentId = incidentId; declareComponents(); initLayout(); initControllers(); addBindings(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // private void declareComponents() { stack = new Stack(); dateFormatDate = new SimpleDateFormat("MM/dd/yyyy"); dateFormatTime = new SimpleDateFormat("HH:mm:ss"); mapLocLabel = new javax.swing.JLabel(); addressField = new javax.swing.JTextField(); aptLabel = new javax.swing.JLabel(); aptField = new javax.swing.JTextField(4); crossStLabel = new javax.swing.JLabel(); crossStField = new javax.swing.JTextField(); locationLabel = new javax.swing.JLabel(); locationField = new javax.swing.JTextField(); cityLabel = new javax.swing.JLabel(); cityComboBox = new javax.swing.JComboBox(); countyLabel = new javax.swing.JLabel(); countyComboBox = new javax.swing.JComboBox(); agencyLabel = new javax.swing.JLabel(); agencyComboBox = new javax.swing.JComboBox(); typeCodeLabel = new javax.swing.JLabel(); typeCodeComboBox = new javax.swing.JComboBox(); priLabel = new javax.swing.JLabel(); priComboBox = new javax.swing.JComboBox(); priComboBox.setPreferredSize(new Dimension(50, 25)); rightOfPriButton = new javax.swing.JButton(); rpLabel = new javax.swing.JLabel(); rpField = new javax.swing.JTextField(); phoneLabel = new javax.swing.JLabel(); phoneField = new javax.swing.JTextField(); extLabel = new javax.swing.JLabel(); extField = new javax.swing.JTextField(3); aliLabel = new javax.swing.JLabel(); aliField = new javax.swing.JTextField(); rpTypeLabel = new javax.swing.JLabel(); rpTypeComboBox = new javax.swing.JComboBox(); sectorComboBox = new javax.swing.JComboBox(); sectorLabel = new javax.swing.JLabel(); beatLabel = new javax.swing.JLabel(); beatComboBox = new javax.swing.JComboBox(); mediaComboBox = new javax.swing.JComboBox(); mediaLabel = new javax.swing.JLabel(); confidentialCommentCheckBox = new javax.swing.JCheckBox(); jScrollPane2 = new javax.swing.JScrollPane(); jLabel8 = new javax.swing.JLabel(); hubXterButton = new javax.swing.JButton(); aniAliButton = new javax.swing.JButton(); updateMapLocButton = new javax.swing.JButton(); exitSendButton = new javax.swing.JButton(); sentToQButton = new javax.swing.JButton(); fileButton = new javax.swing.JButton(); showAllButton = new javax.swing.JButton(); unitRecButton = new javax.swing.JButton(); addFspChpButton = new javax.swing.JButton(); informationButton = new javax.swing.JButton(); carButton = new javax.swing.JButton(); personButton = new javax.swing.JButton(); towRotationButton = new javax.swing.JButton(); licensePlateInfoLabel = new javax.swing.JLabel(); jScrollPane13 = new javax.swing.JScrollPane(); licensePlateTable = new javax.swing.JTable(); addButton = new javax.swing.JButton(); cautionButton = new javax.swing.JButton(); historyButton = new javax.swing.JButton(); premiseButton = new javax.swing.JButton(); mapButton = new javax.swing.JButton(); fireField = new javax.swing.JTextField(); emsLabel = new javax.swing.JLabel(); emsField = new javax.swing.JTextField(); fireLabel = new javax.swing.JLabel(); lawLabel = new javax.swing.JLabel(); lawField = new javax.swing.JTextField(); bottomTabbedPane = new javax.swing.JTabbedPane(); callbacksPane = new javax.swing.JPanel(); jPanel13 = new javax.swing.JPanel(); callBackCommentField = new javax.swing.JTextField(); callBackAddButton = new javax.swing.JButton(); callBackCancelButton = new javax.swing.JButton(); callBackSaveButton = new javax.swing.JButton(); jScrollPane14 = new javax.swing.JScrollPane(); callBackCommentTable = new javax.swing.JTable(); assignmentsPane = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jScrollPane4 = new javax.swing.JScrollPane(); assignmentsTable = new javax.swing.JTable(); jPanel2 = new javax.swing.JPanel(); jScrollPane7 = new javax.swing.JScrollPane(); jScrollPane5 = new javax.swing.JScrollPane(); resourceTable = new javax.swing.JTable(); recommandButton = new javax.swing.JButton(); activitiesPane = new javax.swing.JPanel(); jScrollPane15 = new javax.swing.JScrollPane(); jScrollPane6 = new javax.swing.JScrollPane(); activitiesTable = new javax.swing.JTable(); callBacksPane = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); incidentNumLabel = new javax.swing.JLabel(); addInfoIncidentNumField = new javax.swing.JTextField(); incidentTypeLabel = new javax.swing.JLabel(); addInfoIncidentTypeField = new javax.swing.JTextField(); callTakenLabel = new javax.swing.JLabel(); addInfoCallTakenField = new javax.swing.JTextField(); machineNameLabel = new javax.swing.JLabel(); addInfoMachineNameField = new javax.swing.JTextField(); callTakerPhoneLabel = new javax.swing.JLabel(); addInfoCallTakerPhoneExtField = new javax.swing.JTextField(); callStatusLabel = new javax.swing.JLabel(); addInfoCallStatusField = new javax.swing.JTextField(); alarmLevelLabel = new javax.swing.JLabel(); addInfoAlarmLevelField = new javax.swing.JTextField(); ccJurisdictionLabel = new javax.swing.JLabel(); areaOfDivisionLabel = new javax.swing.JLabel(); addInfoCCJurisdictionComboBox = new javax.swing.JComboBox(); addInfoAreaOfDivisionComboBox = new javax.swing.JComboBox(); areaBatallionLabel = new javax.swing.JLabel(); addInfoAreaBatallionComboBox = new javax.swing.JComboBox(); beatResponseAreaLabel = new javax.swing.JLabel(); addInfoBeatResponseAreaComboBox = new javax.swing.JComboBox(); responsePlanLabel = new javax.swing.JLabel(); addInfoReponsePlanComboBox = new javax.swing.JComboBox(); rotationProviderAreaLabel = new javax.swing.JLabel(); addInfoRotationProviderAreaField = new javax.swing.JTextField(); addInfoCommentsField = new javax.swing.JTextField(); commentsNotesPane = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); commentsNotesTable = new javax.swing.JTable(); commentsNotesAddButton = new javax.swing.JButton(); commentsNotesCancelButton = new javax.swing.JButton(); commentsNotesNotifyButton = new javax.swing.JButton(); commentsNotesSaveButton = new javax.swing.JButton(); commentsNotesField = new javax.swing.JTextArea(); // JD changed from TextField commentsNotesConfidentialCommentCheckBox = new javax.swing.JCheckBox(); editLogPane = new javax.swing.JPanel(); jScrollPane8 = new javax.swing.JScrollPane(); editLogTable = new javax.swing.JTable(); timesPane = new javax.swing.JPanel(); jScrollPane9 = new javax.swing.JScrollPane(); timesTable = new javax.swing.JTable(); ringLabel = new javax.swing.JLabel(); timesRingField = new javax.swing.JTextField(); inQueueLabel = new javax.swing.JLabel(); timesInQueueField = new javax.swing.JTextField(); allAvailableLabel = new javax.swing.JLabel(); timesAllAvailableField = new javax.swing.JTextField(); callClosedLabel = new javax.swing.JLabel(); timesCallClosedField = new javax.swing.JTextField(); timesPageTimesButton = new javax.swing.JButton(); transportInfoPane = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); jTextField27 = new javax.swing.JTextField(); transportInfoAddPresetTransportRecButton = new javax.swing.JButton(); transportInfoRemoveTransportRecButton = new javax.swing.JButton(); transportInfoLinkUnitToTransportRecButton = new javax.swing.JButton(); nameLabel = new javax.swing.JLabel(); transportCityLabel = new javax.swing.JLabel(); transportLocationLabel = new javax.swing.JLabel(); transportInfoAddressButton = new javax.swing.JButton(); transportInfoNameField = new javax.swing.JTextField(); transportInfoCityComboBox = new javax.swing.JComboBox(); transportInfoLocationField = new javax.swing.JTextField(); transportInfoAddressField = new javax.swing.JTextField(); transportStateLabel = new javax.swing.JLabel(); roomAptEtcLabel = new javax.swing.JLabel(); phoneLabel2 = new javax.swing.JLabel(); transportInfoStateField = new javax.swing.JTextField(); transportInfoRoomAptEtcField = new javax.swing.JTextField(); transportInfoPhoneField = new javax.swing.JTextField(); buildingNumLabel = new javax.swing.JLabel(); transportInfoBuildingField = new javax.swing.JTextField(); transportInfoState2Field = new javax.swing.JTextField(); transportInfoCancelButton = new javax.swing.JButton(); transportInfoSaveButton = new javax.swing.JButton(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel7 = new javax.swing.JPanel(); transportProtocolLabel = new javax.swing.JLabel(); transportInfoProtocolComboBox = new javax.swing.JComboBox(); transportPriorityLabel = new javax.swing.JLabel(); transportInfoPriorityComboBox = new javax.swing.JComboBox(); assistedByLabel = new javax.swing.JLabel(); transportInfoAssistedByComboBox = new javax.swing.JComboBox(); jPanel8 = new javax.swing.JPanel(); jPanel9 = new javax.swing.JPanel(); jPanel10 = new javax.swing.JPanel(); userDataPane = new javax.swing.JPanel(); jPanel11 = new javax.swing.JPanel(); timeStampsLabel = new javax.swing.JLabel(); jScrollPane10 = new javax.swing.JScrollPane(); timeStampsTable = new javax.swing.JTable(); userDataTimeStampField = new javax.swing.JTextField(); dateLabel = new javax.swing.JLabel(); userDataDateField = new javax.swing.JTextField(); timeLabel = new javax.swing.JLabel(); userDataTimeField = new javax.swing.JTextField(); userDataStampButton = new javax.swing.JButton(); jScrollPane11 = new javax.swing.JScrollPane(); dataFieldsTable = new javax.swing.JTable(); dataFieldsLabel = new javax.swing.JLabel(); userDataCancelButton = new javax.swing.JButton(); userDataSaveButton = new javax.swing.JButton(); userDataDataField = new javax.swing.JTextField(); attachmentsPane = new javax.swing.JPanel(); jScrollPane12 = new javax.swing.JScrollPane(); attachmentsTable = new javax.swing.JTable(); fileNameLabel = new javax.swing.JLabel(); attachmentsFileNameField = new javax.swing.JTextField(); attachmentsBrowseButton = new javax.swing.JButton(); descriptionLabel = new javax.swing.JLabel(); attachmentsDescriptionField = new javax.swing.JTextField(); attachmentsAddButton = new javax.swing.JButton(); attachmentsDeleteButton = new javax.swing.JButton(); attachmentsCancelButton = new javax.swing.JButton(); attachmentsSaveButton = new javax.swing.JButton(); } public void initWindowListener() { addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { close(); } }); } public ActionListener newExitSendActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent arg0) { String commentMsg = upperCommentBox.getText().trim(); // If any text was entered in upper comment box if (commentMsg.length() > 0) { /*save text from comment box */ saveComment(commentMsg.toUpperCase()); // Clear the text before closing upperCommentBox.setText(""); } else // Exit the window { close(); } } }; } public DocumentListener newCommentsDocumentListener() { return new DocumentListener() { public void changedUpdate(DocumentEvent e) { } public void insertUpdate(DocumentEvent evt) { commentsNotesSaveButton.setEnabled(true); } public void removeUpdate(DocumentEvent e) { } }; } public ActionListener newCommentsAddListener() { return new ActionListener() { public void actionPerformed(ActionEvent arg0) { commentsNotesField.setEditable(true); commentsNotesField.setBackground(java.awt.Color.white); commentsNotesField.requestFocus(); commentsNotesAddButton.setEnabled(false); commentsNotesCancelButton.setEnabled(true); } }; } public ActionListener newCommentsCancelListener() { return new ActionListener() { public void actionPerformed(ActionEvent arg0) { commentsNotesField.setText(""); commentsNotesField.setEditable(false); commentsNotesField.setBackground(java.awt.Color.LIGHT_GRAY);//JD commentsNotesAddButton.setEnabled(true); commentsNotesCancelButton.setEnabled(false); commentsNotesSaveButton.setEnabled(false); } }; } public ActionListener newCommentsSaveListener() { return new ActionListener() { public void actionPerformed(ActionEvent arg0) { // pull the text from the text area and go save it saveComment(commentsNotesField.getText().toUpperCase()); commentsNotesField.setText(""); commentsNotesField.setEditable(false); commentsNotesField.setBackground(java.awt.Color.LIGHT_GRAY); commentsNotesAddButton.setEnabled(true); commentsNotesCancelButton.setEnabled(false); commentsNotesSaveButton.setEnabled(false); } }; } /** There are two comment fields on the form so this method performs * the save actions that are common to both fields. * @author jdalbey * @param commentMsg the text of the comment to be saved. */ private void saveComment(String commentMsg) { DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy"); DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss"); // prepare fields to be added to comment table String[] fields = { dateFormat.format(new Date()), timeFormat.format(new Date()), ScreenManager.getUserName(), // Put username in "Initials" column "", // "Block" is left blank for now commentMsg }; try { // insert a new row in the comment table ScreenManager.theCoordinator.addCadDataIncidentTable( INC_TABLE.COMMENTS_NOTES, incidentId, fields); ((DefaultTableModel) commentsNotesTable.getModel()).insertRow(0, fields); } catch (RemoteException e) { e.printStackTrace(); } } private void initControllers() { initWindowListener(); exitSendButton.addActionListener(newExitSendActionListener()); commentsNotesField.getDocument().addDocumentListener(newCommentsDocumentListener()); commentsNotesAddButton.addActionListener(newCommentsAddListener()); commentsNotesCancelButton.addActionListener(newCommentsCancelListener()); commentsNotesSaveButton.addActionListener(newCommentsSaveListener()); //commentsNotesTable.addMouseListener(newCommentsTableCellListener()); //JD } private void initLayout() { setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE); cityComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.LIST_OF_CA_CITIES)); mapLocLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N mapLocLabel.setText("Map Loc:"); aptLabel.setText("Apt:"); crossStLabel.setText("Cross St:"); addressField.setBackground(Color.CYAN); locationField.setBackground(Color.CYAN); locationLabel.setText("Location:"); cityLabel.setText("City:"); countyLabel.setText("County:"); countyComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); agencyLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N agencyLabel.setText("Agency:"); agencyComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.AGENCY)); agencyComboBox.setBackground(Color.CYAN); agencyComboBox.setEnabled(false); typeCodeLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N typeCodeLabel.setText("Type Code:"); typeCodeComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.TYPE)); typeCodeComboBox.setBackground(Color.CYAN); priLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N priLabel.setText("Pri:"); priComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.PRI)); priComboBox.setBackground(Color.CYAN); rightOfPriButton.setText("rightOfPriButton"); rightOfPriButton.setEnabled(false); rpLabel.setText("RP:"); rpField.setBackground(Color.CYAN); phoneLabel.setText("Phone:"); phoneField.setBackground(Color.CYAN); extLabel.setText("Ext:"); aliLabel.setText("ALI:"); rpTypeLabel.setText("RP Type:"); rpTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); sectorComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); sectorComboBox.setBackground(Color.CYAN); sectorLabel.setText("Sector:"); beatLabel.setText("Beat:"); beatComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.BEATS)); beatComboBox.setBackground(Color.YELLOW); mediaComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.MEDIA)); mediaComboBox.setBackground(Color.YELLOW); mediaComboBox.setEnabled(false); mediaLabel.setText("MEDIA:"); confidentialCommentCheckBox.setText("Confidential Comment"); confidentialCommentCheckBox.setEnabled(false); jLabel8.setText("Comments:"); hubXterButton.setText("Hub Xter"); hubXterButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); hubXterButton.setEnabled(false); aniAliButton.setText("ANI/ALI"); aniAliButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); aniAliButton.setEnabled(false); updateMapLocButton.setText("\nUpdate\n

Map Loc

\n"); updateMapLocButton.setActionCommand(" Update

Map Loc

"); updateMapLocButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); updateMapLocButton.setEnabled(false); exitSendButton.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N exitSendButton.setText("Exit / Send"); sentToQButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N sentToQButton.setText("Send to Q"); sentToQButton.setMargin(new java.awt.Insets(2, 2, 2, 2)); sentToQButton.setEnabled(false); fileButton.setText("File"); fileButton.setEnabled(false); showAllButton.setLabel("Show All"); showAllButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); showAllButton.setEnabled(false); unitRecButton.setText("Unit Rec"); unitRecButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); unitRecButton.setEnabled(false); addFspChpButton.setText("

Add FSP/

CHP

"); addFspChpButton.setActionCommand(""); addFspChpButton.setMargin(new java.awt.Insets(2, 2, 2, 2)); addFspChpButton.setEnabled(false); ImageIcon image = new ImageIcon("images/IncidentViewerImages/buttonInformation.png"); informationButton.setIcon(image); informationButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonCar.png"); carButton.setIcon(image); carButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonPerson.png"); personButton.setIcon(image); personButton.setEnabled(false); towRotationButton.setText("Tow Rotation"); towRotationButton.setEnabled(false); licensePlateInfoLabel.setText("License Plate Information"); jScrollPane13.setViewportView(licensePlateTable); addButton.setText("Add"); addButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonCau.png"); cautionButton.setIcon(image); cautionButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonHis.png"); historyButton.setIcon(image); historyButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonPre.png"); premiseButton.setIcon(image); premiseButton.setEnabled(false); image = new ImageIcon("images/IncidentViewerImages/buttonMap.png"); mapButton.setIcon(image); mapButton.setEnabled(false); emsLabel.setText("EMS"); fireLabel.setText("FIRE"); lawLabel.setText("LAW"); callbacksPane.setPreferredSize(new java.awt.Dimension(809, 300)); callBackCommentField.setEditable(false); callBackAddButton.setText("Add"); callBackAddButton.setEnabled(false); callBackCancelButton.setText("Cancel"); callBackCancelButton.setEnabled(false); callBackSaveButton.setText("Save"); callBackSaveButton.setEnabled(false); callBackCommentTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); recommandButton.setText("Recommand"); recommandButton.setEnabled(false); incidentNumLabel.setText("Incident Number:"); addInfoIncidentNumField.setEditable(false); incidentTypeLabel.setText("Incident Type:"); addInfoIncidentTypeField.setEditable(false); callTakenLabel.setText("Call Taken:"); addInfoCallTakenField.setEditable(false); machineNameLabel.setText("Machine Name:"); addInfoMachineNameField.setEditable(false); callTakerPhoneLabel.setText("Call Taker Phone Ext:"); addInfoCallTakerPhoneExtField.setEditable(false); callStatusLabel.setText("Call Status:"); addInfoCallStatusField.setEditable(false); alarmLevelLabel.setText("Alarm Level:"); addInfoAlarmLevelField.setEditable(false); ccJurisdictionLabel.setText("CC/Jurisdiction:"); areaOfDivisionLabel.setText("Area Ofc/Division:"); addInfoCommentsField.setEditable(false); addInfoCCJurisdictionComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); addInfoAreaOfDivisionComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); areaBatallionLabel.setText("Area/Batallion:"); addInfoAreaBatallionComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); beatResponseAreaLabel.setText("Beat/Response Area:"); addInfoBeatResponseAreaComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); responsePlanLabel.setText("Response Plan:"); addInfoReponsePlanComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); rotationProviderAreaLabel.setText("Rotation Provider Area:"); addInfoRotationProviderAreaField.setEditable(false); commentsNotesPane.setPreferredSize(new java.awt.Dimension(809, 300)); commentsNotesTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Date", "Time", "Initial", "Block", "Comments" })); jScrollPane3.setViewportView(commentsNotesTable); commentsNotesTable.getColumnModel().getColumn(0).setResizable(false); commentsNotesTable.getColumnModel().getColumn(0).setPreferredWidth(3); commentsNotesTable.getColumnModel().getColumn(1).setResizable(false); commentsNotesTable.getColumnModel().getColumn(1).setPreferredWidth(10); commentsNotesTable.getColumnModel().getColumn(2).setResizable(false); commentsNotesTable.getColumnModel().getColumn(2).setPreferredWidth(8); commentsNotesTable.getColumnModel().getColumn(3).setResizable(false); commentsNotesTable.getColumnModel().getColumn(3).setPreferredWidth(6); commentsNotesTable.getColumnModel().getColumn(4).setResizable(false); commentsNotesField.setEditable(false); commentsNotesField.setBackground(java.awt.Color.LIGHT_GRAY); commentsNotesField.setLineWrap(true); // JD make text wrap inside the field commentsNotesField.setBorder(BorderFactory.createLineBorder(Color.GRAY)); // JD added a border upperCommentBox.setLineWrap(true); commentsNotesAddButton.setText("Add"); commentsNotesCancelButton.setText("Cancel"); commentsNotesCancelButton.setEnabled(false); commentsNotesNotifyButton.setText("Notify"); commentsNotesNotifyButton.setEnabled(false); commentsNotesSaveButton.setText("Save"); commentsNotesSaveButton.setEnabled(false); commentsNotesConfidentialCommentCheckBox.setText("Confidential Comment"); commentsNotesConfidentialCommentCheckBox.setEnabled(false); jScrollPane14.setViewportView(callBackCommentTable); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel13Layout.createSequentialGroup() .addComponent(callBackCommentField, javax.swing.GroupLayout.PREFERRED_SIZE, 519, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(callBackAddButton) .addComponent(callBackCancelButton) .addComponent(callBackSaveButton))) .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 604, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(144, Short.MAX_VALUE))); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addComponent(callBackAddButton) .addGap(0, 0, 0) .addComponent(callBackCancelButton) .addGap(0, 0, 0) .addComponent(callBackSaveButton)) .addComponent(callBackCommentField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); javax.swing.GroupLayout callbacksPaneLayout = new javax.swing.GroupLayout(callbacksPane); callbacksPane.setLayout(callbacksPaneLayout); callbacksPaneLayout.setHorizontalGroup( callbacksPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(callbacksPaneLayout.createSequentialGroup() .addGap(41, 41, 41) .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); callbacksPaneLayout.setVerticalGroup( callbacksPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(callbacksPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(58, Short.MAX_VALUE))); assignmentsPane.setPreferredSize(new java.awt.Dimension(809, 300)); assignmentsTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Unit", "Alarm Level", "Type", "Status", "responding From", "Elapsed", "Response Number" })); jScrollPane4.setViewportView(assignmentsTable); jScrollPane1.setViewportView(jScrollPane4); resourceTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Resource / Capability", "", "Title 3", "Title 4" })); jScrollPane5.setViewportView(resourceTable); jScrollPane7.setViewportView(jScrollPane5); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(recommandButton) .addContainerGap())); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(recommandButton) .addGap(47, 47, 47))); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); javax.swing.GroupLayout assignmentsPaneLayout = new javax.swing.GroupLayout(assignmentsPane); assignmentsPane.setLayout(assignmentsPaneLayout); assignmentsPaneLayout.setHorizontalGroup( assignmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(assignmentsPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(63, Short.MAX_VALUE))); assignmentsPaneLayout.setVerticalGroup( assignmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, assignmentsPaneLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(22, 22, 22))); activitiesPane.setPreferredSize(new java.awt.Dimension(809, 300)); activitiesTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Date/Time", "Vehicle/Unit", "Activity", "Location", "Comment", "Dispatch" })); jScrollPane6.setViewportView(activitiesTable); jScrollPane15.setViewportView(jScrollPane6); javax.swing.GroupLayout activitiesPaneLayout = new javax.swing.GroupLayout(activitiesPane); activitiesPane.setLayout(activitiesPaneLayout); activitiesPaneLayout.setHorizontalGroup( activitiesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(activitiesPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 789, Short.MAX_VALUE) .addContainerGap())); activitiesPaneLayout.setVerticalGroup( activitiesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(activitiesPaneLayout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE) .addContainerGap())); callBacksPane.setPreferredSize(new java.awt.Dimension(809, 300)); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(rotationProviderAreaLabel)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(callTakenLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(machineNameLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(incidentTypeLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(incidentNumLabel, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(4, 4, 4) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(addInfoIncidentNumField, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE) .addComponent(addInfoIncidentTypeField, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(addInfoCallTakenField, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(addInfoMachineNameField, javax.swing.GroupLayout.Alignment.TRAILING))) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(callStatusLabel) .addComponent(callTakerPhoneLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(addInfoCallTakerPhoneExtField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE) .addComponent(addInfoCallStatusField)) .addComponent(addInfoCommentsField, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 31, Short.MAX_VALUE))) .addGap(100, 100, 100) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(alarmLevelLabel) .addComponent(ccJurisdictionLabel) .addComponent(areaOfDivisionLabel) .addComponent(areaBatallionLabel) .addComponent(beatResponseAreaLabel) .addComponent(responsePlanLabel)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(addInfoAlarmLevelField, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(addInfoCCJurisdictionComboBox, 0, 206, Short.MAX_VALUE) .addComponent(addInfoAreaOfDivisionComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(addInfoAreaBatallionComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(addInfoBeatResponseAreaComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(addInfoReponsePlanComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(addInfoRotationProviderAreaField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(incidentNumLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(addInfoIncidentNumField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(incidentTypeLabel) .addComponent(addInfoIncidentTypeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(callTakenLabel) .addComponent(addInfoCallTakenField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(machineNameLabel) .addComponent(addInfoMachineNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(callTakerPhoneLabel) .addComponent(addInfoCallTakerPhoneExtField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(callStatusLabel) .addComponent(addInfoCallStatusField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(alarmLevelLabel) .addComponent(addInfoAlarmLevelField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ccJurisdictionLabel) .addComponent(addInfoCCJurisdictionComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(areaOfDivisionLabel) .addComponent(addInfoAreaOfDivisionComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(areaBatallionLabel) .addComponent(addInfoAreaBatallionComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(beatResponseAreaLabel) .addComponent(addInfoBeatResponseAreaComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(responsePlanLabel) .addComponent(addInfoReponsePlanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rotationProviderAreaLabel) .addComponent(addInfoRotationProviderAreaField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(23, 23, 23) .addComponent(addInfoCommentsField, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(5, 5, 5))); javax.swing.GroupLayout callBacksPaneLayout = new javax.swing.GroupLayout(callBacksPane); callBacksPane.setLayout(callBacksPaneLayout); callBacksPaneLayout.setHorizontalGroup( callBacksPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(callBacksPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(85, Short.MAX_VALUE))); callBacksPaneLayout.setVerticalGroup( callBacksPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(callBacksPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(40, 40, 40))); javax.swing.GroupLayout commentsNotesPaneLayout = new javax.swing.GroupLayout(commentsNotesPane); commentsNotesPane.setLayout(commentsNotesPaneLayout); commentsNotesPaneLayout.setHorizontalGroup( commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addContainerGap() .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 789, Short.MAX_VALUE) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addComponent(commentsNotesField, javax.swing.GroupLayout.PREFERRED_SIZE, 610, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(commentsNotesNotifyButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(commentsNotesAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(commentsNotesSaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(commentsNotesCancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(commentsNotesConfidentialCommentCheckBox)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); commentsNotesPaneLayout.setVerticalGroup( commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(commentsNotesAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(commentsNotesCancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, 0) .addGroup(commentsNotesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(commentsNotesNotifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(commentsNotesSaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE) .addComponent(commentsNotesConfidentialCommentCheckBox)) .addGroup(commentsNotesPaneLayout.createSequentialGroup() .addGap(2, 2, 2) .addComponent(commentsNotesField))) .addGap(40, 40, 40))); editLogPane.setPreferredSize(new java.awt.Dimension(809, 300)); editLogTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Date", "Edits/Updates", "Reason", "Changes By", "Terminal" })); jScrollPane8.setViewportView(editLogTable); javax.swing.GroupLayout editLogPaneLayout = new javax.swing.GroupLayout(editLogPane); editLogPane.setLayout(editLogPaneLayout); editLogPaneLayout.setHorizontalGroup( editLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(editLogPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 789, Short.MAX_VALUE) .addContainerGap())); editLogPaneLayout.setVerticalGroup( editLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(editLogPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18))); timesPane.setPreferredSize(new java.awt.Dimension(809, 300)); timesTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Unit", "Alarm Level", "Assigned", "Enroute", "Staged", "Arrival", "Access", "Depart", "At Dest.", "Status 5", "Available", "Resp Num" })); jScrollPane9.setViewportView(timesTable); ringLabel.setText("Ring:"); timesRingField.setEditable(false); inQueueLabel.setText("In-Queue:"); timesInQueueField.setEditable(false); allAvailableLabel.setText("All Available:"); timesAllAvailableField.setEditable(false); callClosedLabel.setText("Call Closed:"); timesCallClosedField.setEditable(false); timesPageTimesButton.setText("Page Times"); timesPageTimesButton.setEnabled(false); javax.swing.GroupLayout timesPaneLayout = new javax.swing.GroupLayout(timesPane); timesPane.setLayout(timesPaneLayout); timesPaneLayout.setHorizontalGroup( timesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(timesPaneLayout.createSequentialGroup() .addContainerGap() .addGroup(timesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(timesPaneLayout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(ringLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(timesRingField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(inQueueLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(timesInQueueField, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(allAvailableLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(timesAllAvailableField, javax.swing.GroupLayout.DEFAULT_SIZE, 69, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(callClosedLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(timesCallClosedField, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(timesPageTimesButton)) .addComponent(jScrollPane9)) .addContainerGap())); timesPaneLayout.setVerticalGroup( timesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(timesPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(timesPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ringLabel) .addComponent(timesRingField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(inQueueLabel) .addComponent(timesInQueueField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(allAvailableLabel) .addComponent(timesAllAvailableField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(callClosedLabel) .addComponent(timesCallClosedField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(timesPageTimesButton)) .addContainerGap(88, Short.MAX_VALUE))); transportInfoPane.setPreferredSize(new java.awt.Dimension(809, 300)); transportInfoAddPresetTransportRecButton.setText("Add Preset Transport Rec"); transportInfoAddPresetTransportRecButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); transportInfoAddPresetTransportRecButton.setEnabled(false); transportInfoRemoveTransportRecButton.setText("Remove Transport Rec"); transportInfoRemoveTransportRecButton.setMargin(new java.awt.Insets(3, 3, 3, 3)); transportInfoRemoveTransportRecButton.setEnabled(false); transportInfoLinkUnitToTransportRecButton.setText("Link Unit to Transport Rec"); transportInfoLinkUnitToTransportRecButton.setEnabled(false); nameLabel.setText("Name:"); transportCityLabel.setText("Transport to City:"); transportLocationLabel.setText("Transport to Location:"); transportInfoAddressButton.setText("Address"); transportInfoAddressButton.setEnabled(false); transportInfoCityComboBox.setModel(new javax.swing.DefaultComboBoxModel(ComboBoxConstants.LIST_OF_CA_CITIES)); transportInfoCityComboBox.setEnabled(false); transportStateLabel.setText("Transport to State:"); roomAptEtcLabel.setText("Room, Apt, etc.:"); phoneLabel2.setText("Phone:"); buildingNumLabel.setText("Building #:"); transportInfoCancelButton.setText("Cancel"); transportInfoCancelButton.setEnabled(false); transportInfoSaveButton.setText("Save"); transportInfoSaveButton.setEnabled(false); transportProtocolLabel.setText("Transport Protocol..."); transportInfoProtocolComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" })); transportInfoProtocolComboBox.setEnabled(false); transportPriorityLabel.setText("Transport Priority..."); transportInfoPriorityComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" })); transportInfoPriorityComboBox.setEnabled(false); assistedByLabel.setText("Assisted By..."); transportInfoAssistedByComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" })); transportInfoAssistedByComboBox.setEnabled(false); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(transportInfoProtocolComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(transportInfoPriorityComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel7Layout.createSequentialGroup() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(transportProtocolLabel) .addComponent(transportPriorityLabel) .addComponent(assistedByLabel)) .addGap(0, 94, Short.MAX_VALUE)) .addComponent(transportInfoAssistedByComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap())); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addGap(30, 30, 30) .addComponent(transportProtocolLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(transportInfoProtocolComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(transportPriorityLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(transportInfoPriorityComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(assistedByLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(transportInfoAssistedByComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(33, Short.MAX_VALUE))); jTabbedPane2.addTab("Mode", jPanel7); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 215, Short.MAX_VALUE)); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 195, Short.MAX_VALUE)); jTabbedPane2.addTab("Times", jPanel8); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 215, Short.MAX_VALUE)); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 195, Short.MAX_VALUE)); jTabbedPane2.addTab("Odometer", jPanel9); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 215, Short.MAX_VALUE)); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 195, Short.MAX_VALUE)); jTabbedPane2.addTab("Caution", jPanel10); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField27) .addComponent(transportInfoAddPresetTransportRecButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(transportInfoRemoveTransportRecButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(transportInfoLinkUnitToTransportRecButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(nameLabel) .addComponent(transportCityLabel) .addComponent(transportLocationLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(transportInfoAddressButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(transportStateLabel) .addComponent(roomAptEtcLabel) .addComponent(phoneLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(transportInfoNameField, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(transportInfoCityComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(transportInfoLocationField) .addComponent(transportInfoAddressField) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(transportInfoRoomAptEtcField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(buildingNumLabel)) .addComponent(transportInfoStateField, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(transportInfoBuildingField, javax.swing.GroupLayout.DEFAULT_SIZE, 66, Short.MAX_VALUE) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(transportInfoState2Field, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(transportInfoPhoneField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(14, 14, 14) .addComponent(transportInfoCancelButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addGap(242, 242, 242) .addComponent(transportInfoSaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(84, Short.MAX_VALUE))); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(17, 17, 17) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(nameLabel) .addComponent(transportInfoNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(transportCityLabel) .addComponent(transportInfoCityComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(transportLocationLabel) .addComponent(transportInfoLocationField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(transportInfoAddressButton) .addComponent(transportInfoAddressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(23, 23, 23) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(transportStateLabel) .addComponent(transportInfoStateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(transportInfoState2Field, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(roomAptEtcLabel) .addComponent(transportInfoRoomAptEtcField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(buildingNumLabel) .addComponent(transportInfoBuildingField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(phoneLabel2) .addComponent(transportInfoPhoneField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(transportInfoCancelButton)) .addComponent(transportInfoAddPresetTransportRecButton)) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(transportInfoRemoveTransportRecButton) .addGap(0, 0, Short.MAX_VALUE) .addComponent(transportInfoLinkUnitToTransportRecButton)) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(transportInfoSaveButton) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))); javax.swing.GroupLayout transportInfoPaneLayout = new javax.swing.GroupLayout(transportInfoPane); transportInfoPane.setLayout(transportInfoPaneLayout); transportInfoPaneLayout.setHorizontalGroup( transportInfoPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(transportInfoPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); transportInfoPaneLayout.setVerticalGroup( transportInfoPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(transportInfoPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 273, Short.MAX_VALUE) .addGap(25, 25, 25))); userDataPane.setPreferredSize(new java.awt.Dimension(809, 300)); timeStampsLabel.setText("Time Stamps"); timeStampsTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Time Stamp Description", "Date", "Time" })); jScrollPane10.setViewportView(timeStampsTable); userDataTimeStampField.setEditable(false); userDataTimeStampField.setText("(User-defined Timp Stamp)"); userDataTimeStampField.setEnabled(false); dateLabel.setText("Date:"); userDataDateField.setEditable(false); timeLabel.setText("Time:"); userDataTimeField.setEditable(false); userDataStampButton.setText("Stamp"); userDataStampButton.setEnabled(false); dataFieldsTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Data Field Discription", "Data" })); jScrollPane11.setViewportView(dataFieldsTable); jScrollPane2.setViewportView(upperCommentBox); dataFieldsLabel.setText("Data Fields"); userDataDataField.setEditable(false); userDataCancelButton.setText("Cancel"); userDataCancelButton.setEnabled(false); userDataSaveButton.setText("Save"); userDataSaveButton.setEnabled(false); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 370, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addComponent(timeStampsLabel) .addGap(310, 310, 310)) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(dateLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(userDataTimeStampField, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(userDataDateField, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(timeLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(userDataTimeField, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(userDataStampButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(dataFieldsLabel) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup() .addGap(0, 90, Short.MAX_VALUE) .addComponent(userDataDataField, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(userDataCancelButton, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE) .addComponent(userDataSaveButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap())); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(timeStampsLabel) .addComponent(dataFieldsLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE) .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(userDataTimeStampField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(userDataCancelButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(dateLabel) .addComponent(userDataDateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(timeLabel) .addComponent(userDataTimeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(userDataStampButton) .addComponent(userDataSaveButton) .addComponent(userDataDataField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); javax.swing.GroupLayout userDataPaneLayout = new javax.swing.GroupLayout(userDataPane); userDataPane.setLayout(userDataPaneLayout); userDataPaneLayout.setHorizontalGroup( userDataPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(userDataPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); userDataPaneLayout.setVerticalGroup( userDataPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(userDataPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(28, 28, 28))); attachmentsPane.setPreferredSize(new java.awt.Dimension(809, 300)); attachmentsTable.setModel(new javax.swing.table.DefaultTableModel( null, new String[] { "Data", "Attachment Type", "Size", "Description" })); jScrollPane12.setViewportView(attachmentsTable); fileNameLabel.setText("File Name:"); attachmentsFileNameField.setEditable(false); attachmentsDescriptionField.setEditable(false); attachmentsBrowseButton.setText("jButton38"); attachmentsBrowseButton.setEnabled(false); descriptionLabel.setText("Description:"); attachmentsAddButton.setText("Add"); attachmentsAddButton.setEnabled(false); attachmentsDeleteButton.setText("Delete"); attachmentsDeleteButton.setEnabled(false); attachmentsCancelButton.setText("Cancel"); attachmentsCancelButton.setEnabled(false); attachmentsSaveButton.setText("Save"); attachmentsSaveButton.setEnabled(false); javax.swing.GroupLayout attachmentsPaneLayout = new javax.swing.GroupLayout(attachmentsPane); attachmentsPane.setLayout(attachmentsPaneLayout); attachmentsPaneLayout.setHorizontalGroup( attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(fileNameLabel) .addComponent(descriptionLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addComponent(attachmentsFileNameField, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(attachmentsBrowseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 27, Short.MAX_VALUE)) .addComponent(attachmentsDescriptionField))) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addComponent(attachmentsAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(attachmentsDeleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(attachmentsCancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(attachmentsSaveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); attachmentsPaneLayout.setVerticalGroup( attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(attachmentsPaneLayout.createSequentialGroup() .addGap(37, 37, 37) .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(fileNameLabel) .addComponent(attachmentsFileNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(attachmentsBrowseButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(descriptionLabel) .addComponent(attachmentsDescriptionField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36) .addGroup(attachmentsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(attachmentsAddButton) .addComponent(attachmentsDeleteButton) .addComponent(attachmentsCancelButton) .addComponent(attachmentsSaveButton)))) .addGap(48, 48, 48))); bottomTabbedPane.addTab("Additional Information", callBacksPane); bottomTabbedPane.addTab("Assignments", assignmentsPane); bottomTabbedPane.addTab("Activities", activitiesPane); bottomTabbedPane.addTab("Call Backs", callbacksPane); bottomTabbedPane.addTab("Comments/Notes", commentsNotesPane); bottomTabbedPane.addTab("Edit Log", editLogPane); bottomTabbedPane.addTab("Times", timesPane); bottomTabbedPane.addTab("Transport Info", transportInfoPane); bottomTabbedPane.addTab("User Data", userDataPane); bottomTabbedPane.addTab("Attachments", attachmentsPane); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(lawLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lawField, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addComponent(fireLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(fireField, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(emsLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(emsField, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(47, 47, 47)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel8) .addComponent(mediaLabel) .addComponent(agencyLabel) .addComponent(locationLabel) .addComponent(mapLocLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(agencyComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(typeCodeLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(typeCodeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(priLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(priComboBox, 0, 1, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(aptLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(aptField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(locationField, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addComponent(mediaComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(confidentialCommentCheckBox))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(rightOfPriButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 373, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(35, 35, 35) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(addFspChpButton) .addComponent(hubXterButton)) .addGap(32, 32, 32) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(aniAliButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(unitRecButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(updateMapLocButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(showAllButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(51, 51, 51) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(sentToQButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(fileButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(exitSendButton, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(crossStLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(cityLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(rpLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(phoneLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(aliLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(rpTypeLabel, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(sectorLabel, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(crossStField) .addGroup(layout.createSequentialGroup() .addComponent(cityComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(countyLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(countyComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(rpField) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(sectorComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(beatLabel)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(phoneField, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(extLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(extField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(rpTypeComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(aliField, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(informationButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(carButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(personButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(towRotationButton)) .addGroup(layout.createSequentialGroup() .addComponent(mapButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(premiseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(historyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cautionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(addButton) .addGap(45, 45, 45)) .addGroup(layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(licensePlateInfoLabel) .addGroup(layout.createSequentialGroup() .addGap(30, 30, 30) .addComponent(beatComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))))) .addComponent(bottomTabbedPane, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap())))); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(mapLocLabel) .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(aptLabel) .addComponent(aptField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(crossStLabel) .addComponent(crossStField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(locationLabel) .addComponent(locationField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cityLabel) .addComponent(cityComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(countyLabel) .addComponent(countyComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(agencyLabel) .addComponent(agencyComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(typeCodeLabel) .addComponent(typeCodeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(priLabel) .addComponent(priComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(mediaLabel) .addComponent(mediaComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(confidentialCommentCheckBox))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rpLabel) .addComponent(rpField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(phoneLabel) .addComponent(phoneField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(extLabel) .addComponent(extField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(rightOfPriButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(aliField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(aliLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rpTypeLabel) .addComponent(rpTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(sectorComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(beatLabel) .addComponent(beatComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sectorLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(carButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(informationButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(personButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(towRotationButton)) .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(mapButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(premiseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(historyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cautionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addComponent(licensePlateInfoLabel) .addGap(4, 4, 4) .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(addButton)))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, 0) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(aniAliButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(updateMapLocButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(hubXterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(exitSendButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(unitRecButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(showAllButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sentToQButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(fileButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(addFspChpButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(5, 5, 5) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lawLabel) .addComponent(lawField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(fireLabel) .addComponent(fireField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(emsLabel) .addComponent(emsField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(bottomTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 330, Short.MAX_VALUE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); pack(); }//
public JButton makeButton(ImageIcon image, ActionListener listener) { JButton button = new JButton(image); Dimension size = new Dimension(image.getImage().getWidth(null), image.getImage().getHeight(null)); button.setPreferredSize(size); button.setMinimumSize(size); button.setMaximumSize(size); button.setBorderPainted(false); button.addActionListener(listener); return button; } /* * Updates the data stored in the incidents class upon exit. */ public void saveInformation() { try { ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.ADDRESS, incidentId, addressField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.LOC, incidentId, locationField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.APT, incidentId, aptField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.CROSS_ST, incidentId, crossStField.getText()); ScreenManager.theCoordinator.setCadDataIncVal(INC_VAL.RP, incidentId, rpField.getText()); ScreenManager.theCoordinator.setCadDataIncCaller(INC_CALLER.PHONE, incidentId, phoneField.getText()); ScreenManager.theCoordinator.setCadDataIncCaller(INC_CALLER.EXT, incidentId, extField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.LAW, incidentId, lawField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.FIRE, incidentId, fireField.getText()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.EMS, incidentId, emsField.getText()); // cadData.getIncident(incidentId).getCallBacks().setComment(callBackCommentField.getText()); ScreenManager.theCoordinator.setCadDataIncGenInfo(INC_GEN_INFO.AGY, incidentId, (String) agencyComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncAddInfo( INC_ADD_INFO.TYPE, incidentId, (String) typeCodeComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncVal(INC_VAL.P, incidentId, (String) priComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncVal(INC_VAL.MEDIA, incidentId, (String) mediaComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.CITY, incidentId, (String) cityComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.COUNTY, incidentId, (String) countyComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncVal(INC_VAL.RP_TYPE, incidentId, (String) rpTypeComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.SECTOR, incidentId, (String) sectorComboBox.getSelectedItem()); ScreenManager.theCoordinator.setCadDataIncLoc(INC_LOC.BEAT, incidentId, (String) beatComboBox.getSelectedItem()); } catch (RemoteException e) { e.printStackTrace(); } } /* * Updates all the strings. * * @see tmcsimulator.cadclient.data.cadData.vectorForIncidentViewer(String * incidentId) for matching up strings. */ public void refreshInformation() { try { addressField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.ADDRESS, incidentId)); locationField.setText(ScreenManager.theCoordinator .getCadDataIncLoc(INC_LOC.LOC, incidentId)); aptField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.APT, incidentId)); crossStField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.CROSS_ST, incidentId)); rpField.setText((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.RP, incidentId)); phoneField.setText(ScreenManager.theCoordinator .getCadDataIncCaller(INC_CALLER.PHONE, incidentId)); extField.setText(ScreenManager.theCoordinator.getCadDataIncCaller( INC_CALLER.EXT, incidentId)); aliField.setText((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.ALI, incidentId)); lawField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.LAW, incidentId)); fireField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.FIRE, incidentId)); emsField.setText(ScreenManager.theCoordinator.getCadDataIncLoc( INC_LOC.EMS, incidentId)); addInfoIncidentNumField .setText((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.MASTER_INC, incidentId)); addInfoIncidentTypeField.setText(ScreenManager.theCoordinator .getCadDataIncAddInfo(INC_ADD_INFO.TYPE, incidentId)); addInfoCallTakenField.setText(ScreenManager.theCoordinator .getCadDataIncInfo(INC_INFO.CALL_TAKEN, incidentId)); addInfoMachineNameField.setText(ScreenManager.theCoordinator .getCadDataIncAddInfo(INC_ADD_INFO.MACHINE, incidentId)); addInfoCallTakerPhoneExtField.setText(ScreenManager.theCoordinator .getCadDataIncAddInfo(INC_ADD_INFO.CALL_TAKER_EXT, incidentId)); addInfoCallStatusField .setText(ScreenManager.theCoordinator.getCadDataIncAddInfo( INC_ADD_INFO.CALL_STATUS, incidentId)); addInfoAlarmLevelField .setText(ScreenManager.theCoordinator.getCadDataIncAddInfo( INC_ADD_INFO.ALARM_LEVEL, incidentId)); addInfoRotationProviderAreaField .setText(ScreenManager.theCoordinator.getCadDataIncAddInfo( INC_ADD_INFO.ROTATION_PROVIDER_AREA, incidentId)); addInfoCommentsField.setText(ScreenManager.theCoordinator .getCadDataIncAddInfo(INC_ADD_INFO.COMMENT, incidentId)); callBackCommentField.setText(ScreenManager.theCoordinator .getCadDataIncCallBack(INC_CALLBACK.COMMENT, incidentId)); timesRingField.setText(ScreenManager.theCoordinator .getCadDataIncTimes(INC_TIMES.RING, incidentId)); timesInQueueField.setText(ScreenManager.theCoordinator .getCadDataIncTimes(INC_TIMES.IN_QUEUE, incidentId)); timesAllAvailableField.setText(ScreenManager.theCoordinator .getCadDataIncTimes(INC_TIMES.ALL_AVAILABLE, incidentId)); timesCallClosedField.setText(ScreenManager.theCoordinator .getCadDataIncTimes(INC_TIMES.CALL_CLOSED, incidentId)); agencyComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncGenInfo(INC_GEN_INFO.AGY, incidentId)); typeCodeComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncAddInfo(INC_ADD_INFO.TYPE, incidentId)); priComboBox.setSelectedItem((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.P, incidentId)); mediaComboBox.setSelectedItem((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.MEDIA, incidentId)); cityComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncLoc(INC_LOC.CITY, incidentId)); countyComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncLoc(INC_LOC.COUNTY, incidentId)); rpTypeComboBox .setSelectedItem((String) ScreenManager.theCoordinator .getCadDataIncVal(INC_VAL.RP_TYPE, incidentId)); sectorComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncLoc(INC_LOC.SECTOR, incidentId)); beatComboBox.setSelectedItem(ScreenManager.theCoordinator .getCadDataIncLoc(INC_LOC.BEAT, incidentId)); // callBackCommentTable.setModel(cadData.getIncident(incidentId).getCallBackCommentTable()); } catch (RemoteException e) { e.printStackTrace(); } // refreshLicenseTable(incidentId); } /* * Displays the information of the latest incident clicked. */ public void open() { try { if (!ScreenManager.theCoordinator .checkForValidIncidentID(incidentId)) { return; } // stack.push(incidentId); JD removed stack, it was broken refreshInformation(); setTitle("Incident Viewer- Incident ID [" + ScreenManager.theCoordinator.getCadDataIncVal( INC_VAL.LOG_NUM, incidentId) + "] Master Incident ID[" + ScreenManager.theCoordinator.getCadDataIncVal( INC_VAL.MASTER_INC, incidentId) + "]"); setVisible(true); bottomTabbedPane.setSelectedIndex(4); commentsNotesTable.setModel(ScreenManager.theCoordinator .getCadDataIncidentTable(INC_TABLE.COMMENTS_NOTES, incidentId)); commentsNotesTable.getColumnModel().getColumn(0).setPreferredWidth(50); commentsNotesTable.getColumnModel().getColumn(1).setPreferredWidth(50); commentsNotesTable.getColumnModel().getColumn(2).setPreferredWidth(15); commentsNotesTable.getColumnModel().getColumn(3).setPreferredWidth(15); commentsNotesTable.getColumnModel().getColumn(4).setPreferredWidth(400); commentsNotesTable.getColumnModel().getColumn(4).setCellRenderer(new LogEntryCellRenderer()); commentsNotesField.setText(""); commentsNotesField.setEditable(false); commentsNotesField.setBackground(java.awt.Color.LIGHT_GRAY); // JD commentsNotesAddButton.setEnabled(true); commentsNotesCancelButton.setEnabled(false); commentsNotesSaveButton.setEnabled(false); } catch (RemoteException e) { e.printStackTrace(); } } // JD Invoked by timer every 5 seconds. public void refreshCommentsNotesTable() { try { commentsNotesTable.setModel(ScreenManager.theCoordinator .getCadDataIncidentTable(INC_TABLE.COMMENTS_NOTES, incidentId)); //Set up tool tips for the comments column commentsNotesTable.getColumnModel().getColumn(4).setCellRenderer(new LogEntryCellRenderer()); // resets the column widths to preferred width // this will essentially mean any user changes are reset commentsNotesTable.getColumnModel().getColumn(0).setPreferredWidth(50); commentsNotesTable.getColumnModel().getColumn(1).setPreferredWidth(50); commentsNotesTable.getColumnModel().getColumn(2).setPreferredWidth(15); commentsNotesTable.getColumnModel().getColumn(3).setPreferredWidth(15); commentsNotesTable.getColumnModel().getColumn(4).setPreferredWidth(400); } catch (RemoteException e) { e.printStackTrace(); } } /* * Closes the information of the latest incident clicked. Closes screen if * there were no previous incidents in the stack. */ public void close() { // JD got rid of the stack, since it was broken anyway. saveInformation(); setVisible(false); /* saveInformation(stack.peek()); stack.pop(); setVisible(false); refreshInformation(stack.peek()); // Is there a defect that this line wasn't coded? Because when the // incident is closed, all info is refreshed EXCEPT the comments table // commentsNotesTable.setModel(ScreenManager.theCoordinator // .getCadDataIncidentTable(INC_TABLE.COMMENTS_NOTES, // incidentId)); try { setTitle("Incident Viewer- Incident ID [" + ScreenManager.theCoordinator.getCadDataIncVal( INC_VAL.LOG_NUM, incidentId) + "] Master Incident ID[" + ScreenManager.theCoordinator.getCadDataIncVal( INC_VAL.MASTER_INC, incidentId) + "]"); } catch (RemoteException e) { e.printStackTrace(); } */ ScreenManager.refreshScreens(); ScreenManager.refreshIncidentEditor(); } /** Add key binding to upper comment box to catch Enter key * and save the comment, then clear the field. */ protected void addBindings() { InputMap inputMap = upperCommentBox.getInputMap(); ActionMap actionMap = upperCommentBox.getActionMap(); // Watch for Enter key KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0); inputMap.put(key, "clearAction"); actionMap.put("clearAction", new ClearAction()); } /** Custom Action to clear a JTextPane, used to clear upperCommentBox */ class ClearAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JTextArea src = (JTextArea) evt.getSource(); saveComment(src.getText().toUpperCase()); src.setText(""); // clear the text area } } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel activitiesPane; private javax.swing.JTable activitiesTable; private javax.swing.JButton addButton; private javax.swing.JButton addFspChpButton; private javax.swing.JTextField addInfoAlarmLevelField; private javax.swing.JComboBox addInfoAreaBatallionComboBox; private javax.swing.JComboBox addInfoAreaOfDivisionComboBox; private javax.swing.JComboBox addInfoBeatResponseAreaComboBox; private javax.swing.JComboBox addInfoCCJurisdictionComboBox; private javax.swing.JTextField addInfoCallStatusField; private javax.swing.JTextField addInfoCallTakenField; private javax.swing.JTextField addInfoCallTakerPhoneExtField; private javax.swing.JTextField addInfoCommentsField; private javax.swing.JTextField addInfoIncidentNumField; private javax.swing.JTextField addInfoIncidentTypeField; private javax.swing.JTextField addInfoMachineNameField; private javax.swing.JComboBox addInfoReponsePlanComboBox; private javax.swing.JTextField addInfoRotationProviderAreaField; private javax.swing.JComboBox agencyComboBox; private javax.swing.JLabel agencyLabel; private javax.swing.JLabel alarmLevelLabel; private javax.swing.JTextField aliField; private javax.swing.JLabel aliLabel; private javax.swing.JLabel allAvailableLabel; private javax.swing.JButton aniAliButton; private javax.swing.JTextField aptField; private javax.swing.JLabel aptLabel; private javax.swing.JLabel areaBatallionLabel; private javax.swing.JLabel areaOfDivisionLabel; private javax.swing.JPanel assignmentsPane; private javax.swing.JTable assignmentsTable; private javax.swing.JLabel assistedByLabel; private javax.swing.JButton attachmentsAddButton; private javax.swing.JButton attachmentsBrowseButton; private javax.swing.JButton attachmentsCancelButton; private javax.swing.JButton attachmentsDeleteButton; private javax.swing.JTextField attachmentsDescriptionField; private javax.swing.JTextField attachmentsFileNameField; private javax.swing.JPanel attachmentsPane; private javax.swing.JButton attachmentsSaveButton; private javax.swing.JTable attachmentsTable; private javax.swing.JComboBox beatComboBox; private javax.swing.JLabel beatLabel; private javax.swing.JLabel beatResponseAreaLabel; private javax.swing.JLabel buildingNumLabel; private javax.swing.JTextField callBackCommentField; private javax.swing.JTable callBackCommentTable; private javax.swing.JPanel callBacksPane; private javax.swing.JLabel callClosedLabel; private javax.swing.JLabel callStatusLabel; private javax.swing.JLabel callTakenLabel; private javax.swing.JLabel callTakerPhoneLabel; private javax.swing.JPanel callbacksPane; private javax.swing.JButton carButton; private javax.swing.JLabel ccJurisdictionLabel; private javax.swing.JComboBox cityComboBox; private javax.swing.JLabel cityLabel; private javax.swing.JButton commentsNotesAddButton; private javax.swing.JButton commentsNotesCancelButton; private javax.swing.JCheckBox commentsNotesConfidentialCommentCheckBox; private javax.swing.JTextArea commentsNotesField; // JD private javax.swing.JButton commentsNotesNotifyButton; private javax.swing.JPanel commentsNotesPane; private javax.swing.JButton commentsNotesSaveButton; private javax.swing.JTable commentsNotesTable; private javax.swing.JComboBox countyComboBox; private javax.swing.JLabel countyLabel; private javax.swing.JTextField crossStField; private javax.swing.JLabel crossStLabel; private javax.swing.JLabel dataFieldsLabel; private javax.swing.JTable dataFieldsTable; private javax.swing.JLabel dateLabel; private javax.swing.JLabel descriptionLabel; private javax.swing.JPanel editLogPane; private javax.swing.JTable editLogTable; private javax.swing.JTextField emsField; private javax.swing.JLabel emsLabel; private javax.swing.JButton exitSendButton; private javax.swing.JTextField extField; private javax.swing.JLabel extLabel; private javax.swing.JButton fileButton; private javax.swing.JLabel fileNameLabel; private javax.swing.JTextField fireField; private javax.swing.JLabel fireLabel; private javax.swing.JButton hubXterButton; private javax.swing.JLabel inQueueLabel; private javax.swing.JLabel incidentNumLabel; private javax.swing.JLabel incidentTypeLabel; private javax.swing.JButton informationButton; private javax.swing.JButton rightOfPriButton; private javax.swing.JButton updateMapLocButton; private javax.swing.JButton mapButton; private javax.swing.JButton premiseButton; private javax.swing.JButton historyButton; private javax.swing.JButton cautionButton; private javax.swing.JButton callBackAddButton; private javax.swing.JButton callBackCancelButton; private javax.swing.JButton callBackSaveButton; private javax.swing.JCheckBox confidentialCommentCheckBox; private javax.swing.JLabel jLabel8; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel10; private javax.swing.JPanel jPanel11; private javax.swing.JPanel jPanel12; private javax.swing.JPanel jPanel13; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel4; private javax.swing.JPanel jPanel6; private javax.swing.JPanel jPanel7; private javax.swing.JPanel jPanel8; private javax.swing.JPanel jPanel9; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane10; private javax.swing.JScrollPane jScrollPane11; private javax.swing.JScrollPane jScrollPane12; private javax.swing.JScrollPane jScrollPane13; private javax.swing.JScrollPane jScrollPane14; private javax.swing.JScrollPane jScrollPane15; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JScrollPane jScrollPane3; private javax.swing.JScrollPane jScrollPane4; private javax.swing.JScrollPane jScrollPane5; private javax.swing.JScrollPane jScrollPane6; private javax.swing.JScrollPane jScrollPane7; private javax.swing.JScrollPane jScrollPane8; private javax.swing.JScrollPane jScrollPane9; private javax.swing.JTabbedPane bottomTabbedPane; private javax.swing.JTabbedPane jTabbedPane2; private javax.swing.JTextField jTextField27; private javax.swing.JTextField lawField; private javax.swing.JLabel lawLabel; private javax.swing.JLabel licensePlateInfoLabel; private javax.swing.JTable licensePlateTable; private javax.swing.JTextField locationField; private javax.swing.JLabel locationLabel; private javax.swing.JLabel machineNameLabel; private javax.swing.JTextField addressField; private javax.swing.JLabel mapLocLabel; private javax.swing.JComboBox mediaComboBox; private javax.swing.JLabel mediaLabel; private javax.swing.JLabel nameLabel; private javax.swing.JButton personButton; private javax.swing.JTextField phoneField; private javax.swing.JLabel phoneLabel; private javax.swing.JLabel phoneLabel2; private javax.swing.JComboBox priComboBox; private javax.swing.JLabel priLabel; private javax.swing.JButton recommandButton; private javax.swing.JTable resourceTable; private javax.swing.JLabel responsePlanLabel; private javax.swing.JLabel ringLabel; private javax.swing.JLabel roomAptEtcLabel; private javax.swing.JLabel rotationProviderAreaLabel; private javax.swing.JTextField rpField; private javax.swing.JLabel rpLabel; private javax.swing.JComboBox rpTypeComboBox; private javax.swing.JLabel rpTypeLabel; private javax.swing.JComboBox sectorComboBox; private javax.swing.JLabel sectorLabel; private javax.swing.JButton sentToQButton; private javax.swing.JButton showAllButton; private javax.swing.JLabel timeLabel; private javax.swing.JLabel timeStampsLabel; private javax.swing.JTable timeStampsTable; private javax.swing.JTextField timesAllAvailableField; private javax.swing.JTextField timesCallClosedField; private javax.swing.JTextField timesInQueueField; private javax.swing.JButton timesPageTimesButton; private javax.swing.JPanel timesPane; private javax.swing.JTextField timesRingField; private javax.swing.JTable timesTable; private javax.swing.JButton towRotationButton; private javax.swing.JLabel transportCityLabel; private javax.swing.JButton transportInfoAddPresetTransportRecButton; private javax.swing.JButton transportInfoAddressButton; private javax.swing.JTextField transportInfoAddressField; private javax.swing.JComboBox transportInfoAssistedByComboBox; private javax.swing.JTextField transportInfoBuildingField; private javax.swing.JButton transportInfoCancelButton; private javax.swing.JComboBox transportInfoCityComboBox; private javax.swing.JButton transportInfoLinkUnitToTransportRecButton; private javax.swing.JTextField transportInfoLocationField; private javax.swing.JTextField transportInfoNameField; private javax.swing.JPanel transportInfoPane; private javax.swing.JTextField transportInfoPhoneField; private javax.swing.JComboBox transportInfoPriorityComboBox; private javax.swing.JComboBox transportInfoProtocolComboBox; private javax.swing.JButton transportInfoRemoveTransportRecButton; private javax.swing.JTextField transportInfoRoomAptEtcField; private javax.swing.JButton transportInfoSaveButton; private javax.swing.JTextField transportInfoState2Field; private javax.swing.JTextField transportInfoStateField; private javax.swing.JLabel transportLocationLabel; private javax.swing.JLabel transportPriorityLabel; private javax.swing.JLabel transportProtocolLabel; private javax.swing.JLabel transportStateLabel; private javax.swing.JComboBox typeCodeComboBox; private javax.swing.JLabel typeCodeLabel; private javax.swing.JButton unitRecButton; private javax.swing.JButton userDataCancelButton; private javax.swing.JTextField userDataDataField; private javax.swing.JTextField userDataDateField; private javax.swing.JPanel userDataPane; private javax.swing.JButton userDataSaveButton; private javax.swing.JButton userDataStampButton; private javax.swing.JTextField userDataTimeField; private javax.swing.JTextField userDataTimeStampField; private javax.swing.JTextArea upperCommentBox = new javax.swing.JTextArea(); // End of variables declaration//GEN-END:variables }