| | |
| | | |
| | | private static final long serialVersionUID = 8695606871542491768L; |
| | | |
| | | private JLabel lblServerLocation; |
| | | |
| | | private JTextComponent tcServerLocation; |
| | | |
| | | private JTextComponent tcCurrentServerBuildNumber; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void displayFieldInvalid(FieldName fieldName, boolean invalid) { |
| | | UIFactory.TextStyle style; |
| | | if (invalid) { |
| | | style = UIFactory.TextStyle.PRIMARY_FIELD_INVALID; |
| | | } else { |
| | | style = UIFactory.TextStyle.PRIMARY_FIELD_VALID; |
| | | } |
| | | if (FieldName.SERVER_LOCATION.equals(fieldName)) { |
| | | UIFactory.setTextStyle(lblServerLocation, style); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | protected String getTitle() { |
| | | return getMsg("upgrade-welcome-panel-title"); |
| | | } |
| | |
| | | // command line implies a build. |
| | | if (Utils.isWebStart()) { |
| | | |
| | | lblServerLocation = UIFactory.makeJLabel(serverLocationDescriptor); |
| | | |
| | | tcServerLocation = |
| | | UIFactory.makeJTextComponent(serverLocationDescriptor, |
| | | userData.getServerLocation()); |
| | |
| | | butBrowse.addActionListener(l); |
| | | |
| | | JPanel pnlBrowser = Utilities.createBrowseButtonPanel( |
| | | UIFactory.makeJLabel(serverLocationDescriptor), |
| | | lblServerLocation, |
| | | tcServerLocation, |
| | | butBrowse); |
| | | pnlBrowser.setOpaque(false); |