Changeset 108 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui
- Timestamp:
- 09/05/2017 03:17:45 PM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 2 edited
-
ScriptBuilderFrame.form (modified) (5 diffs)
-
ScriptBuilderFrame.java (modified) (39 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form
r105 r108 274 274 <EmptySpace min="-2" pref="18" max="-2" attributes="0"/> 275 275 <Group type="103" groupAlignment="0" attributes="0"> 276 <Component id="addIncidentStart" alignment="0" pref="158" max="32767" attributes="0"/> 277 <Component id="addIncidentLength" alignment="0" pref="158" max="32767" attributes="0"/> 276 <Group type="102" attributes="0"> 277 <EmptySpace min="6" pref="6" max="-2" attributes="0"/> 278 <Component id="labelIncidentLength" max="32767" attributes="0"/> 279 <EmptySpace min="22" pref="22" max="-2" attributes="0"/> 280 </Group> 281 <Component id="addIncidentStart" pref="158" max="32767" attributes="0"/> 278 282 </Group> 279 283 </Group> … … 305 309 <Component id="jLabel10" min="-2" max="-2" attributes="0"/> 306 310 <EmptySpace max="-2" attributes="0"/> 307 <Component id="jScrollPane1" pref="1 06" max="32767" attributes="0"/>311 <Component id="jScrollPane1" pref="118" max="32767" attributes="0"/> 308 312 <EmptySpace max="-2" attributes="0"/> 309 313 <Group type="103" groupAlignment="3" attributes="0"> … … 313 317 <EmptySpace max="-2" attributes="0"/> 314 318 <Group type="103" groupAlignment="3" attributes="0"> 315 <Component id="addIncidentLength" alignment="3" min="-2" max="-2" attributes="0"/>316 319 <Component id="jLabel11" alignment="3" min="-2" max="-2" attributes="0"/> 320 <Component id="labelIncidentLength" alignment="3" min="-2" max="-2" attributes="0"/> 317 321 </Group> 318 322 <EmptySpace max="-2" attributes="0"/> … … 398 402 </Properties> 399 403 </Component> 400 <Component class="javax.swing.JSpinner" name="addIncidentLength">401 <Properties>402 <Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">403 <SpinnerModel initial="0" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>404 </Property>405 </Properties>406 </Component>407 404 <Component class="javax.swing.JLabel" name="jLabel12"> 408 405 <Properties> … … 431 428 <Color blue="0" green="0" red="0" type="rgb"/> 432 429 </Property> 430 </Properties> 431 </Component> 432 <Component class="javax.swing.JLabel" name="labelIncidentLength"> 433 <Properties> 434 <Property name="horizontalAlignment" type="int" value="4"/> 435 <Property name="text" type="java.lang.String" value="0"/> 436 <Property name="toolTipText" type="java.lang.String" value=""/> 433 437 </Properties> 434 438 </Component> -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r106 r108 23 23 import javax.swing.JFileChooser; 24 24 import javax.swing.JOptionPane; 25 import javax.swing.SwingConstants; 25 26 import javax.swing.UIManager; 26 27 import javax.swing.UnsupportedLookAndFeelException; … … 253 254 @SuppressWarnings("unchecked") 254 255 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 255 private void initComponents() { 256 private void initComponents() 257 { 256 258 257 259 incidentPopupMenu = new javax.swing.JPopupMenu(); … … 289 291 addIncidentName = new javax.swing.JTextField(); 290 292 jLabel11 = new javax.swing.JLabel(); 291 addIncidentLength = new javax.swing.JSpinner();292 293 jLabel12 = new javax.swing.JLabel(); 293 294 addIncidentStart = new javax.swing.JSpinner(); 294 295 jButton3 = new javax.swing.JButton(); 295 296 incidentColorField = new javax.swing.JTextField(); 297 labelIncidentLength = new javax.swing.JLabel(); 296 298 addNoiseFrame = new javax.swing.JFrame(); 297 299 jLabel13 = new javax.swing.JLabel(); … … 370 372 371 373 cadEvent.setText("CAD Event"); 372 cadEvent.addMouseListener(new java.awt.event.MouseAdapter() { 373 public void mousePressed(java.awt.event.MouseEvent evt) { 374 cadEvent.addMouseListener(new java.awt.event.MouseAdapter() 375 { 376 public void mousePressed(java.awt.event.MouseEvent evt) 377 { 374 378 cadEventMousePressed(evt); 375 379 } 376 public void mouseReleased(java.awt.event.MouseEvent evt) { 380 public void mouseReleased(java.awt.event.MouseEvent evt) 381 { 377 382 cadEventMouseReleased(evt); 378 383 } … … 384 389 385 390 radioEvent.setText("Radio Event"); 386 radioEvent.addMouseListener(new java.awt.event.MouseAdapter() { 387 public void mousePressed(java.awt.event.MouseEvent evt) { 391 radioEvent.addMouseListener(new java.awt.event.MouseAdapter() 392 { 393 public void mousePressed(java.awt.event.MouseEvent evt) 394 { 388 395 radioEventMousePressed(evt); 389 396 } … … 439 446 440 447 okButton.setText("OK"); 441 okButton.addActionListener(new java.awt.event.ActionListener() { 442 public void actionPerformed(java.awt.event.ActionEvent evt) { 448 okButton.addActionListener(new java.awt.event.ActionListener() 449 { 450 public void actionPerformed(java.awt.event.ActionEvent evt) 451 { 443 452 okButtonActionPerformed(evt); 444 453 } … … 446 455 447 456 cancelButton.setText("Cancel"); 448 cancelButton.addActionListener(new java.awt.event.ActionListener() { 449 public void actionPerformed(java.awt.event.ActionEvent evt) { 457 cancelButton.addActionListener(new java.awt.event.ActionListener() 458 { 459 public void actionPerformed(java.awt.event.ActionEvent evt) 460 { 450 461 cancelButtonActionPerformed(evt); 451 462 } … … 490 501 491 502 editEventList.setText("Edit..."); 492 editEventList.addActionListener(new java.awt.event.ActionListener() { 493 public void actionPerformed(java.awt.event.ActionEvent evt) { 503 editEventList.addActionListener(new java.awt.event.ActionListener() 504 { 505 public void actionPerformed(java.awt.event.ActionEvent evt) 506 { 494 507 editEventListActionPerformed(evt); 495 508 } … … 521 534 522 535 incidentOkButton.setText("OK"); 523 incidentOkButton.addActionListener(new java.awt.event.ActionListener() { 524 public void actionPerformed(java.awt.event.ActionEvent evt) { 536 incidentOkButton.addActionListener(new java.awt.event.ActionListener() 537 { 538 public void actionPerformed(java.awt.event.ActionEvent evt) 539 { 525 540 incidentOkButtonActionPerformed(evt); 526 541 } … … 528 543 529 544 incidentCancelButton.setText("Cancel"); 530 incidentCancelButton.addActionListener(new java.awt.event.ActionListener() { 531 public void actionPerformed(java.awt.event.ActionEvent evt) { 545 incidentCancelButton.addActionListener(new java.awt.event.ActionListener() 546 { 547 public void actionPerformed(java.awt.event.ActionEvent evt) 548 { 532 549 incidentCancelButtonActionPerformed(evt); 533 550 } 534 551 }); 535 552 536 addIncidentNumber.setModel(new javax.swing.SpinnerNumberModel( 101, 101, null, 1));553 addIncidentNumber.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(101), Integer.valueOf(101), null, Integer.valueOf(1))); 537 554 538 555 jLabel11.setText("Incident Length in Minutes: "); 539 556 540 addIncidentLength.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));541 542 557 jLabel12.setText("Incident Start Time in Minutes:"); 543 558 544 addIncidentStart.setModel(new javax.swing.SpinnerNumberModel( 0, 0, null, 1));559 addIncidentStart.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1))); 545 560 546 561 jButton3.setText("Choose..."); 547 jButton3.addActionListener(new java.awt.event.ActionListener() { 548 public void actionPerformed(java.awt.event.ActionEvent evt) { 562 jButton3.addActionListener(new java.awt.event.ActionListener() 563 { 564 public void actionPerformed(java.awt.event.ActionEvent evt) 565 { 549 566 jButton3ActionPerformed(evt); 550 567 } … … 553 570 incidentColorField.setEditable(false); 554 571 incidentColorField.setBackground(new java.awt.Color(0, 0, 0)); 572 573 labelIncidentLength.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); 574 labelIncidentLength.setText("0"); 575 labelIncidentLength.setToolTipText(""); 555 576 556 577 javax.swing.GroupLayout incidentFrameLayout = new javax.swing.GroupLayout(incidentFrame.getContentPane()); … … 586 607 .addGap(18, 18, 18) 587 608 .addGroup(incidentFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 588 .addComponent(addIncidentStart, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE) 589 .addComponent(addIncidentLength, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)))) 609 .addGroup(incidentFrameLayout.createSequentialGroup() 610 .addGap(6, 6, 6) 611 .addComponent(labelIncidentLength, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 612 .addGap(22, 22, 22)) 613 .addComponent(addIncidentStart, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)))) 590 614 .addContainerGap()) 591 615 ); … … 609 633 .addComponent(jLabel10) 610 634 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 611 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1 06, Short.MAX_VALUE)635 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE) 612 636 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 613 637 .addGroup(incidentFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) … … 616 640 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 617 641 .addGroup(incidentFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 618 .addComponent( addIncidentLength, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)619 .addComponent( jLabel11))642 .addComponent(jLabel11) 643 .addComponent(labelIncidentLength)) 620 644 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 621 645 .addGroup(incidentFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) … … 658 682 659 683 jButton1.setText("Cancel"); 660 jButton1.addActionListener(new java.awt.event.ActionListener() { 661 public void actionPerformed(java.awt.event.ActionEvent evt) { 684 jButton1.addActionListener(new java.awt.event.ActionListener() 685 { 686 public void actionPerformed(java.awt.event.ActionEvent evt) 687 { 662 688 jButton1ActionPerformed(evt); 663 689 } … … 665 691 666 692 jButton2.setText("Generate"); 667 jButton2.addActionListener(new java.awt.event.ActionListener() { 668 public void actionPerformed(java.awt.event.ActionEvent evt) { 693 jButton2.addActionListener(new java.awt.event.ActionListener() 694 { 695 public void actionPerformed(java.awt.event.ActionEvent evt) 696 { 669 697 jButton2ActionPerformed(evt); 670 698 } … … 1115 1143 zoomSlider.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); 1116 1144 zoomSlider.setFocusable(false); 1117 zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() { 1118 public void stateChanged(javax.swing.event.ChangeEvent evt) { 1145 zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() 1146 { 1147 public void stateChanged(javax.swing.event.ChangeEvent evt) 1148 { 1119 1149 zoomSliderStateChanged(evt); 1120 1150 } … … 1123 1153 zoomInIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomIn.png"))); // NOI18N 1124 1154 zoomInIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 1125 zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() { 1126 public void mouseClicked(java.awt.event.MouseEvent evt) { 1155 zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() 1156 { 1157 public void mouseClicked(java.awt.event.MouseEvent evt) 1158 { 1127 1159 zoomInIconMouseClicked(evt); 1128 1160 } … … 1131 1163 zoomOutIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomOut.png"))); // NOI18N 1132 1164 zoomOutIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 1133 zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() { 1134 public void mouseClicked(java.awt.event.MouseEvent evt) { 1165 zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() 1166 { 1167 public void mouseClicked(java.awt.event.MouseEvent evt) 1168 { 1135 1169 zoomOutIconMouseClicked(evt); 1136 1170 } … … 1155 1189 1156 1190 btnAddTime.setText("+15:00"); 1157 btnAddTime.addActionListener(new java.awt.event.ActionListener() { 1158 public void actionPerformed(java.awt.event.ActionEvent evt) { 1191 btnAddTime.addActionListener(new java.awt.event.ActionListener() 1192 { 1193 public void actionPerformed(java.awt.event.ActionEvent evt) 1194 { 1159 1195 btnAddTimeActionPerformed(evt); 1160 1196 } … … 1163 1199 fileMenu.setText("File"); 1164 1200 fileMenu.setMargin(new java.awt.Insets(0, 10, 0, 10)); 1165 fileMenu.addActionListener(new java.awt.event.ActionListener() { 1166 public void actionPerformed(java.awt.event.ActionEvent evt) { 1201 fileMenu.addActionListener(new java.awt.event.ActionListener() 1202 { 1203 public void actionPerformed(java.awt.event.ActionEvent evt) 1204 { 1167 1205 fileMenuActionPerformed(evt); 1168 1206 } … … 1171 1209 fileNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1172 1210 fileNew.setText("New"); 1173 fileNew.addActionListener(new java.awt.event.ActionListener() { 1174 public void actionPerformed(java.awt.event.ActionEvent evt) { 1211 fileNew.addActionListener(new java.awt.event.ActionListener() 1212 { 1213 public void actionPerformed(java.awt.event.ActionEvent evt) 1214 { 1175 1215 fileNewActionPerformed(evt); 1176 1216 } … … 1181 1221 fileOpen.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1182 1222 fileOpen.setText("Open..."); 1183 fileOpen.addActionListener(new java.awt.event.ActionListener() { 1184 public void actionPerformed(java.awt.event.ActionEvent evt) { 1223 fileOpen.addActionListener(new java.awt.event.ActionListener() 1224 { 1225 public void actionPerformed(java.awt.event.ActionEvent evt) 1226 { 1185 1227 fileOpenActionPerformed(evt); 1186 1228 } … … 1191 1233 fileSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); 1192 1234 fileSave.setText("Save"); 1193 fileSave.addActionListener(new java.awt.event.ActionListener() { 1194 public void actionPerformed(java.awt.event.ActionEvent evt) { 1235 fileSave.addActionListener(new java.awt.event.ActionListener() 1236 { 1237 public void actionPerformed(java.awt.event.ActionEvent evt) 1238 { 1195 1239 fileSaveActionPerformed(evt); 1196 1240 } … … 1200 1244 fileSaveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1201 1245 fileSaveAs.setText("Save as..."); 1202 fileSaveAs.addActionListener(new java.awt.event.ActionListener() { 1203 public void actionPerformed(java.awt.event.ActionEvent evt) { 1246 fileSaveAs.addActionListener(new java.awt.event.ActionListener() 1247 { 1248 public void actionPerformed(java.awt.event.ActionEvent evt) 1249 { 1204 1250 fileSaveAsActionPerformed(evt); 1205 1251 } … … 1214 1260 generateNotebooks.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1215 1261 generateNotebooks.setText("Generate Notebooks..."); 1216 generateNotebooks.addActionListener(new java.awt.event.ActionListener() { 1217 public void actionPerformed(java.awt.event.ActionEvent evt) { 1262 generateNotebooks.addActionListener(new java.awt.event.ActionListener() 1263 { 1264 public void actionPerformed(java.awt.event.ActionEvent evt) 1265 { 1218 1266 generateNotebooksActionPerformed(evt); 1219 1267 } … … 1227 1275 generateScorecards.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1228 1276 generateScorecards.setText("Generate Scorecards..."); 1229 generateScorecards.addActionListener(new java.awt.event.ActionListener() { 1230 public void actionPerformed(java.awt.event.ActionEvent evt) { 1277 generateScorecards.addActionListener(new java.awt.event.ActionListener() 1278 { 1279 public void actionPerformed(java.awt.event.ActionEvent evt) 1280 { 1231 1281 generateScorecardsActionPerformed(evt); 1232 1282 } … … 1236 1286 generateOrganizationChart.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1237 1287 generateOrganizationChart.setText("Generate D14 TMC Org Chart..."); 1238 generateOrganizationChart.addActionListener(new java.awt.event.ActionListener() { 1239 public void actionPerformed(java.awt.event.ActionEvent evt) { 1288 generateOrganizationChart.addActionListener(new java.awt.event.ActionListener() 1289 { 1290 public void actionPerformed(java.awt.event.ActionEvent evt) 1291 { 1240 1292 generateOrganizationChartActionPerformed(evt); 1241 1293 } … … 1246 1298 generateProjectRequirements.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK)); 1247 1299 generateProjectRequirements.setText("Generate Project Worklist..."); 1248 generateProjectRequirements.addActionListener(new java.awt.event.ActionListener() { 1249 public void actionPerformed(java.awt.event.ActionEvent evt) { 1300 generateProjectRequirements.addActionListener(new java.awt.event.ActionListener() 1301 { 1302 public void actionPerformed(java.awt.event.ActionEvent evt) 1303 { 1250 1304 generateProjectRequirementsActionPerformed(evt); 1251 1305 } … … 1259 1313 1260 1314 newIncident.setText("New Incident..."); 1261 newIncident.addActionListener(new java.awt.event.ActionListener() { 1262 public void actionPerformed(java.awt.event.ActionEvent evt) { 1315 newIncident.addActionListener(new java.awt.event.ActionListener() 1316 { 1317 public void actionPerformed(java.awt.event.ActionEvent evt) 1318 { 1263 1319 newIncidentActionPerformed(evt); 1264 1320 } … … 1267 1323 1268 1324 deleteIncident.setText("Delete Incident"); 1269 deleteIncident.addActionListener(new java.awt.event.ActionListener() { 1270 public void actionPerformed(java.awt.event.ActionEvent evt) { 1325 deleteIncident.addActionListener(new java.awt.event.ActionListener() 1326 { 1327 public void actionPerformed(java.awt.event.ActionEvent evt) 1328 { 1271 1329 deleteIncidentActionPerformed(evt); 1272 1330 } … … 1276 1334 1277 1335 saveIncident.setText("Save Incident..."); 1278 saveIncident.addActionListener(new java.awt.event.ActionListener() { 1279 public void actionPerformed(java.awt.event.ActionEvent evt) { 1336 saveIncident.addActionListener(new java.awt.event.ActionListener() 1337 { 1338 public void actionPerformed(java.awt.event.ActionEvent evt) 1339 { 1280 1340 saveIncidentActionPerformed(evt); 1281 1341 } … … 1284 1344 1285 1345 loadIncident.setText("Load Incident..."); 1286 loadIncident.addActionListener(new java.awt.event.ActionListener() { 1287 public void actionPerformed(java.awt.event.ActionEvent evt) { 1346 loadIncident.addActionListener(new java.awt.event.ActionListener() 1347 { 1348 public void actionPerformed(java.awt.event.ActionEvent evt) 1349 { 1288 1350 loadIncidentActionPerformed(evt); 1289 1351 } … … 1296 1358 1297 1359 generateNoiseOption.setText("Generate Noise..."); 1298 generateNoiseOption.addActionListener(new java.awt.event.ActionListener() { 1299 public void actionPerformed(java.awt.event.ActionEvent evt) { 1360 generateNoiseOption.addActionListener(new java.awt.event.ActionListener() 1361 { 1362 public void actionPerformed(java.awt.event.ActionEvent evt) 1363 { 1300 1364 generateNoiseOptionActionPerformed(evt); 1301 1365 } … … 1313 1377 1314 1378 helpAbout.setText("About..."); 1315 helpAbout.addActionListener(new java.awt.event.ActionListener() { 1316 public void actionPerformed(java.awt.event.ActionEvent evt) { 1379 helpAbout.addActionListener(new java.awt.event.ActionListener() 1380 { 1381 public void actionPerformed(java.awt.event.ActionEvent evt) 1382 { 1317 1383 helpAboutActionPerformed(evt); 1318 1384 } … … 1549 1615 addIncidentNumber.setValue(101); 1550 1616 addIncidentStart.setValue(0); 1551 //addIncidentLength.setValue(0);1617 labelIncidentLength.setText("0"); 1552 1618 incidentColorField.setBackground(Color.BLACK); 1553 1619 selectedColor = Color.BLACK; … … 1639 1705 addIncidentNumber.setValue(i.number); 1640 1706 addIncidentStart.setValue(i.offset / 60); 1707 labelIncidentLength.setText(""+(i.length/60) ); 1708 labelIncidentLength.setHorizontalTextPosition(SwingConstants.RIGHT); 1641 1709 //addIncidentLength.setValue(i.length / 60); 1642 1710 incidentColorField.setBackground(i.color); … … 2005 2073 // Variables declaration - do not modify//GEN-BEGIN:variables 2006 2074 private javax.swing.JTextArea addIncidentDescription; 2007 private javax.swing.JSpinner addIncidentLength;2008 2075 private javax.swing.JTextField addIncidentName; 2009 2076 private javax.swing.JSpinner addIncidentNumber; … … 2095 2162 private javax.swing.JSlider jSlider5; 2096 2163 private javax.swing.JTextArea jTextArea1; 2164 private javax.swing.JLabel labelIncidentLength; 2097 2165 private javax.swing.JMenuItem loadIncident; 2098 2166 private javax.swing.JMenuItem newIncident;
Note: See TracChangeset
for help on using the changeset viewer.
