# HG changeset patch # User Andrew Azores # Date 1442846722 14400 # Node ID f362b59a5aec9512b78045c75caf025b994903ad # Parent f57cc3785d2528f52c0fe76a9347958b0c82b226 Add label suggesting user note credentials at end of quick setup Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-September/016219.html PR2640 diff -r f57cc3785d25 -r f362b59a5aec setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupCompleteView.java --- a/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupCompleteView.java Fri Sep 18 15:19:05 2015 +0200 +++ b/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupCompleteView.java Mon Sep 21 10:45:22 2015 -0400 @@ -97,10 +97,17 @@ translator.localize(LocaleResources.AGENT_CRED_TITLE).getContents(), translator.localize(LocaleResources.AGENT_HELP_INFO).getContents()); + JLabel textLabel = new JLabel(translator.localize(LocaleResources.SETUP_COMPLETE_NOTE_CREDENTIALS_TEXT).getContents()); + JPanel textLabelPanel = new JPanel(); + textLabelPanel.setOpaque(false); + textLabelPanel.setLayout(new BoxLayout(textLabelPanel, BoxLayout.LINE_AXIS)); + textLabelPanel.add(textLabel); + midPanel = new JPanel(); midPanel.setLayout(new BoxLayout(midPanel, BoxLayout.PAGE_AXIS)); midPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); - midPanel.add(Box.createRigidArea(new Dimension(0, 20))); + midPanel.add(textLabelPanel); + midPanel.add(Box.createRigidArea(new Dimension(0, 10))); midPanel.add(clientInfoPanel); midPanel.add(Box.createRigidArea(new Dimension(0, 20))); midPanel.add(agentInfoPanel); diff -r f57cc3785d25 -r f362b59a5aec setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java --- a/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java Fri Sep 18 15:19:05 2015 +0200 +++ b/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java Mon Sep 21 10:45:22 2015 -0400 @@ -113,7 +113,7 @@ private static final Logger logger = LoggingUtils.getLogger(SetupWindow.class); private static final int FRAME_WIDTH = 600; - private static final int FRAME_HEIGHT = 380; + private static final int FRAME_HEIGHT = 400; private static final int FRAME_LARGE_HEIGHT = 600; public SetupWindow(ThermostatSetup thermostatSetup) { diff -r f57cc3785d25 -r f362b59a5aec setup/command/src/main/java/com/redhat/thermostat/setup/command/locale/LocaleResources.java --- a/setup/command/src/main/java/com/redhat/thermostat/setup/command/locale/LocaleResources.java Fri Sep 18 15:19:05 2015 +0200 +++ b/setup/command/src/main/java/com/redhat/thermostat/setup/command/locale/LocaleResources.java Mon Sep 21 10:45:22 2015 -0400 @@ -104,6 +104,7 @@ SHOW_MORE_ERROR_INFO, SHOW_LESS_ERROR_INFO, STEPS_TO_RESOLVE_ERROR_LABEL_TEXT, + SETUP_COMPLETE_NOTE_CREDENTIALS_TEXT, ; static final String RESOURCE_BUNDLE = diff -r f57cc3785d25 -r f362b59a5aec setup/command/src/main/resources/com/redhat/thermostat/setup/locale/strings.properties --- a/setup/command/src/main/resources/com/redhat/thermostat/setup/locale/strings.properties Fri Sep 18 15:19:05 2015 +0200 +++ b/setup/command/src/main/resources/com/redhat/thermostat/setup/locale/strings.properties Mon Sep 21 10:45:22 2015 -0400 @@ -162,4 +162,7 @@
  • Examine the log files.
  • \
  • Read the user guide.
  • \ \ - \ No newline at end of file + +SETUP_COMPLETE_NOTE_CREDENTIALS_TEXT=Please take note of the credentials listed here \ + as they will be required in order to use certain components of Thermostat. \ + You can hover your mouse over the info icons for more information.