Skip to content

Commit ba14f0b

Browse files
committed
UX improvment
1 parent 4053957 commit ba14f0b

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/main/java/org/netbeans/modules/python/options/PythonLspServerConfigsPanel.form

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
3333
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
3434
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
35-
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-91,0,0,2,74"/>
35+
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-88,0,0,2,115"/>
3636
</AuxValues>
3737

3838
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -62,20 +62,20 @@
6262
<Group type="103" groupAlignment="0" attributes="0">
6363
<Group type="102" attributes="0">
6464
<EmptySpace max="-2" attributes="0"/>
65-
<Group type="103" groupAlignment="0" max="-2" attributes="0">
66-
<Component id="lspServerLabel" pref="204" max="32767" attributes="0"/>
67-
<Component id="lspPythonVersionLabel" pref="204" max="32767" attributes="0"/>
65+
<Group type="103" groupAlignment="0" attributes="0">
66+
<Component id="lspPythonVersionLabel" pref="245" max="32767" attributes="0"/>
67+
<Component id="lspServerLabel" max="32767" attributes="0"/>
6868
</Group>
69-
<EmptySpace max="32767" attributes="0"/>
69+
<EmptySpace max="-2" attributes="0"/>
7070
</Group>
7171
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
7272
<Group type="102" alignment="0" attributes="0">
7373
<EmptySpace max="-2" attributes="0"/>
7474
<Group type="103" groupAlignment="0" attributes="0">
7575
<Component id="lspServerCheckBox" min="-2" max="-2" attributes="0"/>
76-
<Component id="lspScrollPane" alignment="0" min="-2" pref="204" max="-2" attributes="0"/>
76+
<Component id="lspScrollPane" alignment="0" pref="0" max="32767" attributes="0"/>
7777
</Group>
78-
<EmptySpace max="32767" attributes="0"/>
78+
<EmptySpace min="-2" max="-2" attributes="0"/>
7979
</Group>
8080
</Group>
8181
</Group>
@@ -93,8 +93,8 @@
9393
<Group type="102" attributes="0">
9494
<EmptySpace min="-2" max="-2" attributes="0"/>
9595
<Component id="lspServerCheckBox" min="-2" max="-2" attributes="0"/>
96-
<EmptySpace min="-2" pref="59" max="-2" attributes="0"/>
97-
<Component id="lspScrollPane" pref="330" max="32767" attributes="0"/>
96+
<EmptySpace min="-2" pref="56" max="-2" attributes="0"/>
97+
<Component id="lspScrollPane" pref="333" max="32767" attributes="0"/>
9898
<EmptySpace min="-2" max="-2" attributes="0"/>
9999
</Group>
100100
</Group>
@@ -178,11 +178,11 @@
178178
</DimensionLayout>
179179
<DimensionLayout dim="1">
180180
<Group type="103" groupAlignment="0" attributes="0">
181-
<EmptySpace min="0" pref="421" max="32767" attributes="0"/>
181+
<EmptySpace min="0" pref="424" max="32767" attributes="0"/>
182182
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
183183
<Group type="102" attributes="0">
184184
<EmptySpace min="-2" max="-2" attributes="0"/>
185-
<Component id="lspSettingsScrollPane" pref="409" max="32767" attributes="0"/>
185+
<Component id="lspSettingsScrollPane" pref="412" max="32767" attributes="0"/>
186186
<EmptySpace min="-2" max="-2" attributes="0"/>
187187
</Group>
188188
</Group>

src/main/java/org/netbeans/modules/python/options/PythonLspServerConfigsPanel.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
120120
lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
121121
.addGroup(lspPanelLayout.createSequentialGroup()
122122
.addContainerGap()
123-
.addGroup(lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
124-
.addComponent(lspServerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)
125-
.addComponent(lspPythonVersionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE))
126-
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
123+
.addGroup(lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
124+
.addComponent(lspPythonVersionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
125+
.addComponent(lspServerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
126+
.addContainerGap())
127127
.addGroup(lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
128128
.addGroup(lspPanelLayout.createSequentialGroup()
129129
.addContainerGap()
130130
.addGroup(lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
131131
.addComponent(lspServerCheckBox)
132-
.addComponent(lspScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))
133-
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
132+
.addComponent(lspScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
133+
.addContainerGap()))
134134
);
135135
lspPanelLayout.setVerticalGroup(
136136
lspPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -144,8 +144,8 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
144144
.addGroup(lspPanelLayout.createSequentialGroup()
145145
.addContainerGap()
146146
.addComponent(lspServerCheckBox)
147-
.addGap(59, 59, 59)
148-
.addComponent(lspScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 330, Short.MAX_VALUE)
147+
.addGap(56, 56, 56)
148+
.addComponent(lspScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 333, Short.MAX_VALUE)
149149
.addContainerGap()))
150150
);
151151

@@ -172,11 +172,11 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
172172
);
173173
lspSettingsPanelLayout.setVerticalGroup(
174174
lspSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
175-
.addGap(0, 421, Short.MAX_VALUE)
175+
.addGap(0, 424, Short.MAX_VALUE)
176176
.addGroup(lspSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
177177
.addGroup(lspSettingsPanelLayout.createSequentialGroup()
178178
.addContainerGap()
179-
.addComponent(lspSettingsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE)
179+
.addComponent(lspSettingsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
180180
.addContainerGap()))
181181
);
182182

0 commit comments

Comments
 (0)