Skip to content

Commit 5110549

Browse files
authored
Link label with text field and combobox, and fix radio button order (#3542)
1 parent 6568d0e commit 5110549

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/webapp/webappconfig/slimui/WebAppSlimSettingPanel.form

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
</constraints>
127127
<properties>
128128
<enabled value="false"/>
129+
<labelFor value="cae1c"/>
129130
<text value="Slot Configuration Source"/>
130131
<visible value="true"/>
131132
</properties>

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/webapp/webappconfig/slimui/WebAppSlimSettingPanel.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public WebAppSlimSettingPanel(@NotNull Project project, @NotNull WebAppConfigura
107107
this.presenter.onAttachView(this);
108108

109109
final ButtonGroup slotButtonGroup = new ButtonGroup();
110-
slotButtonGroup.add(rbtExistingSlot);
111110
slotButtonGroup.add(rbtNewSlot);
111+
slotButtonGroup.add(rbtExistingSlot);
112112
rbtExistingSlot.addActionListener(e -> toggleSlotType(true));
113113
rbtNewSlot.addActionListener(e -> toggleSlotType(false));
114114

@@ -224,6 +224,11 @@ public void customize(JList jList, MavenProject mavenProject, int i, boolean b,
224224
}
225225
});
226226

227+
JLabel labelForNewSlotName = new JLabel("Slot Name");
228+
labelForNewSlotName.setLabelFor(txtNewSlotName);
229+
JLabel labelForExistingSlotName = new JLabel("Slot Name");
230+
labelForExistingSlotName.setLabelFor(cbxSlotName);
231+
227232
slotDecorator = new HideableDecorator(pnlSlotHolder, DEPLOYMENT_SLOT, true);
228233
slotDecorator.setContentComponent(pnlSlot);
229234
slotDecorator.setOn(webAppConfiguration.isSlotPanelVisible());

0 commit comments

Comments
 (0)