diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.form b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.form index 1b63ac2763..279d9c0626 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.form +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.form @@ -1,6 +1,6 @@
- + diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.java b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.java index 85bfd8a0ea..a9c84baa23 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.java +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/DeviceLoginWindow.java @@ -53,7 +53,7 @@ public class DeviceLoginWindow extends AzureDialogWrapper { private static final String TITLE = "Azure Device Login"; - private JPanel jPanel; + private JPanel panel; private JEditorPane editorPanel; private AuthenticationResult authenticationResult = null; private Future authExecutor; @@ -70,7 +70,7 @@ public DeviceLoginWindow(final AuthenticationContext ctx, final DeviceCode devic this.deviceCode = deviceCode; setModal(true); setTitle(TITLE); - editorPanel.setBackground(jPanel.getBackground()); + editorPanel.setBackground(panel.getBackground()); editorPanel.setText(createHtmlFormatMessage()); editorPanel.addHyperlinkListener(e -> { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { @@ -149,12 +149,12 @@ private void closeDialog() { ApplicationManager.getApplication().invokeLater(() -> { final Window w = getWindow(); w.dispatchEvent(new WindowEvent(w, WindowEvent.WINDOW_CLOSING)); - }, ModalityState.stateForComponent(jPanel)); + }, ModalityState.stateForComponent(panel)); } @Nullable @Override protected JComponent createCenterPanel() { - return jPanel; + return panel; } }