Skip to content

Commit a99a2a4

Browse files
committed
Added asterisk to field ID
1 parent b0f93ab commit a99a2a4

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

src/xbuild/FieldFrame.form

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,10 @@
596596
<Group type="102" alignment="0" attributes="0">
597597
<EmptySpace min="6" pref="6" max="-2" attributes="0"/>
598598
<Component id="jXLabel25" min="-2" max="-2" attributes="0"/>
599-
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
600-
<Component id="txtID_FIELD" min="-2" pref="150" max="-2" attributes="0"/>
599+
<EmptySpace max="-2" attributes="0"/>
600+
<Component id="jLabel7" min="-2" max="-2" attributes="0"/>
601+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
602+
<Component id="txtID_FIELD" min="-2" pref="179" max="-2" attributes="0"/>
601603
</Group>
602604
<Component id="jXPanel5" pref="512" max="32767" attributes="1"/>
603605
</Group>
@@ -615,6 +617,7 @@
615617
<Group type="103" groupAlignment="3" attributes="0">
616618
<Component id="jXLabel25" alignment="3" min="-2" max="-2" attributes="0"/>
617619
<Component id="txtID_FIELD" alignment="3" min="-2" max="-2" attributes="0"/>
620+
<Component id="jLabel7" alignment="3" min="-2" max="-2" attributes="0"/>
618621
</Group>
619622
<EmptySpace max="-2" attributes="0"/>
620623
<Component id="jXPanel8" min="-2" max="-2" attributes="0"/>
@@ -757,6 +760,14 @@
757760
<Property name="text" type="java.lang.String" value="Field ID"/>
758761
</Properties>
759762
</Component>
763+
<Component class="javax.swing.JLabel" name="jLabel7">
764+
<Properties>
765+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
766+
<Color blue="33" green="0" red="ff" type="rgb"/>
767+
</Property>
768+
<Property name="text" type="java.lang.String" value="*"/>
769+
</Properties>
770+
</Component>
760771
<Container class="org.jdesktop.swingx.JXPanel" name="jXPanel8">
761772
<Properties>
762773
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
@@ -785,7 +796,7 @@
785796
<Component id="rdGen" min="-2" max="-2" attributes="0"/>
786797
<EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
787798
<Component id="rdClimate" min="-2" max="-2" attributes="0"/>
788-
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
799+
<EmptySpace min="0" pref="25" max="32767" attributes="0"/>
789800
</Group>
790801
<Group type="102" attributes="0">
791802
<Component id="cbWSTA" min="-2" pref="297" max="-2" attributes="0"/>

src/xbuild/FieldFrame.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ private void initComponents() {
224224
cbFLDT = new xbuild.Components.XDropdownTableComboBox();
225225
txtID_FIELD = new xbuild.Components.XTextField();
226226
jXLabel25 = new org.jdesktop.swingx.JXLabel();
227+
jLabel7 = new javax.swing.JLabel();
227228
jXPanel8 = new org.jdesktop.swingx.JXPanel();
228229
jXLabel26 = new org.jdesktop.swingx.JXLabel();
229230
jLabel6 = new javax.swing.JLabel();
@@ -565,6 +566,9 @@ public void focusLost(java.awt.event.FocusEvent evt) {
565566

566567
jXLabel25.setText("Field ID");
567568

569+
jLabel7.setForeground(new java.awt.Color(255, 0, 51));
570+
jLabel7.setText("*");
571+
568572
jXPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Weather Station", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 1, 12))); // NOI18N
569573
jXPanel8.setName(""); // NOI18N
570574

@@ -611,7 +615,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
611615
.addComponent(rdGen)
612616
.addGap(33, 33, 33)
613617
.addComponent(rdClimate)
614-
.addGap(0, 0, Short.MAX_VALUE))
618+
.addGap(0, 25, Short.MAX_VALUE))
615619
.addGroup(jXPanel8Layout.createSequentialGroup()
616620
.addComponent(cbWSTA, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)
617621
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
@@ -731,8 +735,10 @@ public void itemStateChanged(java.awt.event.ItemEvent evt) {
731735
.addGroup(jXPanel1Layout.createSequentialGroup()
732736
.addGap(6, 6, 6)
733737
.addComponent(jXLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
734-
.addGap(23, 23, 23)
735-
.addComponent(txtID_FIELD, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
738+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
739+
.addComponent(jLabel7)
740+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
741+
.addComponent(txtID_FIELD, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))
736742
.addComponent(jXPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE))
737743
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
738744
.addComponent(imagePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
@@ -745,7 +751,8 @@ public void itemStateChanged(java.awt.event.ItemEvent evt) {
745751
.addGroup(jXPanel1Layout.createSequentialGroup()
746752
.addGroup(jXPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
747753
.addComponent(jXLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
748-
.addComponent(txtID_FIELD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
754+
.addComponent(txtID_FIELD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
755+
.addComponent(jLabel7))
749756
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
750757
.addComponent(jXPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
751758
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
@@ -939,6 +946,7 @@ public boolean isDeleteButtonEnabled(){
939946
private javax.swing.JLabel imagePanel;
940947
private javax.swing.JLabel jLabel4;
941948
private javax.swing.JLabel jLabel6;
949+
private javax.swing.JLabel jLabel7;
942950
private javax.swing.JPanel jPanel1;
943951
private javax.swing.JScrollPane jScrollPane1;
944952
private org.jdesktop.swingx.JXLabel jXLabel1;

0 commit comments

Comments
 (0)