Changeset 69 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui
- Timestamp:
- 08/24/2017 11:50:30 AM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 3 edited
-
IncidentPaletteFrame.form (modified) (4 diffs)
-
IncidentPaletteFrame.java (modified) (10 diffs)
-
panels/IncidentPaletteAddPanel.form (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentPaletteFrame.form
r63 r69 121 121 <Properties> 122 122 <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> 123 <Table columnCount="3" rowCount=" 4">123 <Table columnCount="3" rowCount="11"> 124 124 <Column editable="false" title="Incident #" type="java.lang.Integer"/> 125 125 <Column editable="false" title="Start Time" type="java.lang.String"/> … … 179 179 <Group type="103" groupAlignment="0" attributes="0"> 180 180 <Group type="102" alignment="1" attributes="0"> 181 <EmptySpace max="32767" attributes="0"/> 181 <EmptySpace max="-2" attributes="0"/> 182 <Component id="labelFileCount" max="32767" attributes="0"/> 183 <EmptySpace max="-2" attributes="0"/> 182 184 <Component id="btnClosePalette" min="-2" max="-2" attributes="0"/> 183 185 <EmptySpace max="-2" attributes="0"/> … … 187 189 <DimensionLayout dim="1"> 188 190 <Group type="103" groupAlignment="0" attributes="0"> 189 <Component id="btnClosePalette" min="-2" max="-2" attributes="0"/> 191 <Group type="103" groupAlignment="3" attributes="0"> 192 <Component id="btnClosePalette" alignment="3" min="-2" max="-2" attributes="0"/> 193 <Component id="labelFileCount" alignment="3" min="-2" max="-2" attributes="0"/> 194 </Group> 190 195 </Group> 191 196 </DimensionLayout> … … 200 205 </Events> 201 206 </Component> 207 <Component class="javax.swing.JLabel" name="labelFileCount"> 208 </Component> 202 209 </SubComponents> 203 210 </Container> -
trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java
r63 r69 124 124 scrollAddPanels.setViewport(new JViewport()); 125 125 panelAdd.removeAll(); 126 labelFileCount.setText("Found "+incList.size()+" available incidents."); 126 127 for (ScriptIncident inc : incList) 127 128 { … … 129 130 130 131 panelAdd.add(new IncidentPaletteAddPanel(inc, this)); 131 132 System.out.println(panelAdd.getComponents().length);133 134 132 } 135 133 scrollAddPanels.getViewport().add(panelAdd); … … 169 167 } 170 168 } 169 labelIncidentCount.setText(currentRow + " incidents currently in script."); 171 170 } 172 171 … … 191 190 jPanel3 = new javax.swing.JPanel(); 192 191 btnClosePalette = new javax.swing.JButton(); 192 labelFileCount = new javax.swing.JLabel(); 193 193 194 194 btnCreateIncident.setText("Create New..."); … … 230 230 {null, null, null}, 231 231 {null, null, null}, 232 {null, null, null}, 233 {null, null, null}, 234 {null, null, null}, 235 {null, null, null}, 236 {null, null, null}, 237 {null, null, null}, 238 {null, null, null}, 232 239 {null, null, null} 233 240 }, … … 296 303 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 297 304 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() 298 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 305 .addContainerGap() 306 .addComponent(labelFileCount, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 307 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 299 308 .addComponent(btnClosePalette) 300 309 .addContainerGap()) … … 302 311 jPanel3Layout.setVerticalGroup( 303 312 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 304 .addComponent(btnClosePalette) 313 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 314 .addComponent(btnClosePalette) 315 .addComponent(labelFileCount)) 305 316 ); 306 317 … … 332 343 }// </editor-fold>//GEN-END:initComponents 333 344 334 private void btnClosePaletteActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnClosePaletteActionPerformed335 {//GEN-HEADEREND:event_btnClosePaletteActionPerformed336 script.update();337 this.dispose();338 }//GEN-LAST:event_btnClosePaletteActionPerformed339 340 345 private void btnCreateIncidentActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnCreateIncidentActionPerformed 341 346 {//GEN-HEADEREND:event_btnCreateIncidentActionPerformed … … 367 372 }//GEN-LAST:event_btnCreateIncidentActionPerformed 368 373 374 private void btnClosePaletteActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnClosePaletteActionPerformed 375 {//GEN-HEADEREND:event_btnClosePaletteActionPerformed 376 script.update(); 377 this.dispose(); 378 }//GEN-LAST:event_btnClosePaletteActionPerformed 379 369 380 370 381 // Variables declaration - do not modify//GEN-BEGIN:variables … … 375 386 private javax.swing.JPanel jPanel3; 376 387 private javax.swing.JScrollPane jScrollPane2; 388 private javax.swing.JLabel labelFileCount; 377 389 private javax.swing.JLabel labelIncidentCount; 378 390 private javax.swing.JScrollPane scrollAddPanels; -
trunk/src/scriptbuilder/gui/panels/IncidentPaletteAddPanel.form
r64 r69 1 1 <?xml version="1.0" encoding="UTF-8" ?> 2 2 3 <Form version="1. 3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">3 <Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> 4 4 <Properties> 5 5 <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
Note: See TracChangeset
for help on using the changeset viewer.
