Changeset 177 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form


Ignore:
Timestamp:
12/22/2019 02:45:25 PM (6 years ago)
Author:
jdalbey
Message:

ScriptBuilderFrame?.java Remove color chooser widget from New Incident panel and replace with a simple combo box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form

    r151 r177  
    258258                              <Component id="addIncidentName" pref="199" max="32767" attributes="0"/> 
    259259                              <Component id="addIncidentNumber" alignment="0" pref="199" max="32767" attributes="0"/> 
    260                               <Group type="102" alignment="1" attributes="0"> 
    261                                   <Component id="incidentColorField" pref="97" max="32767" attributes="0"/> 
     260                              <Group type="102" alignment="0" attributes="0"> 
     261                                  <Component id="incidentColorField" min="-2" pref="55" max="-2" attributes="0"/> 
    262262                                  <EmptySpace max="-2" attributes="0"/> 
    263                                   <Component id="btnChooseColor" min="-2" pref="93" max="-2" attributes="0"/> 
     263                                  <Component id="colorComboBox" max="32767" attributes="0"/> 
    264264                              </Group> 
    265265                          </Group> 
     
    320320                  <Group type="103" groupAlignment="3" attributes="0"> 
    321321                      <Component id="labelIncidentColor" alignment="3" min="-2" max="-2" attributes="0"/> 
    322                       <Component id="btnChooseColor" alignment="3" min="-2" max="-2" attributes="0"/> 
    323322                      <Component id="incidentColorField" alignment="3" min="-2" max="-2" attributes="0"/> 
     323                      <Component id="colorComboBox" alignment="3" min="-2" max="-2" attributes="0"/> 
    324324                  </Group> 
    325325                  <EmptySpace max="-2" attributes="0"/> 
     
    336336                  <Component id="labelIncidentDescription" min="-2" max="-2" attributes="0"/> 
    337337                  <EmptySpace max="-2" attributes="0"/> 
    338                   <Component id="incidentPropertiesScrollPane" pref="130" max="32767" attributes="0"/> 
     338                  <Component id="incidentPropertiesScrollPane" pref="132" max="32767" attributes="0"/> 
    339339                  <EmptySpace max="-2" attributes="0"/> 
    340340                  <Group type="103" groupAlignment="3" attributes="0"> 
     
    444444          </Properties> 
    445445        </Component> 
    446         <Component class="javax.swing.JButton" name="btnChooseColor"> 
    447           <Properties> 
    448             <Property name="text" type="java.lang.String" value="Choose..."/> 
    449           </Properties> 
    450           <Events> 
    451             <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnChooseColorActionPerformed"/> 
    452           </Events> 
    453         </Component> 
    454446        <Component class="javax.swing.JTextField" name="incidentColorField"> 
    455447          <Properties> 
     
    483475        </Component> 
    484476        <Component class="javax.swing.JTextField" name="addIncidentType"> 
     477        </Component> 
     478        <Component class="javax.swing.JComboBox" name="colorComboBox"> 
     479          <Properties> 
     480            <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> 
     481              <Connection code="new DefaultComboBoxModel(colorModel)" type="code"/> 
     482            </Property> 
     483          </Properties> 
     484          <Events> 
     485            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="colorSelectedHandler"/> 
     486          </Events> 
     487          <AuxValues> 
     488            <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/> 
     489          </AuxValues> 
    485490        </Component> 
    486491      </SubComponents> 
Note: See TracChangeset for help on using the changeset viewer.