Fix a ClassCastException with Message objects in the Security Options dialog of the installer.
Fix a bug that made the label of the server location not to appear as invalid when we detected that the installation path was not valid.
Fix a bug in UIFactory so that the invalid labels have again a red color.
| | |
| | | ArrayList<Message> errorMsgs = new ArrayList<Message>(); |
| | | for (Object o: ar) |
| | | { |
| | | errorMsgs.add(Message.raw((String)o)); |
| | | errorMsgs.add((Message)o); |
| | | } |
| | | displayError(Utils.getMessageFromCollection(errorMsgs, "\n"), |
| | | INFO_ERROR_TITLE.get()); |
| | |
| | | lServerLocation = UIFactory.makeJLabel(desc); |
| | | tfServerLocationParent = UIFactory.makeJTextComponent(desc, ""); |
| | | lServerLocation.setLabelFor(tfServerLocationParent); |
| | | hmLabels.put(FieldName.SERVER_LOCATION, lServerLocation); |
| | | |
| | | desc = |
| | | new LabelFieldDescriptor(INFO_SERVER_LOCATION_LABEL.get(), |
| | |
| | | * Specifies the invalid field color. |
| | | */ |
| | | public static final Color FIELD_INVALID_COLOR = |
| | | getColor(INFO_FIELD_VALID_COLOR.get()); |
| | | getColor(INFO_FIELD_INVALID_COLOR.get()); |
| | | |
| | | /** |
| | | * Specifies the read only text color. |