Changeset 8377 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2015-05-17T04:02:42+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r8291 r8377 46 46 protected void feedbackInvalid(String msg) { 47 47 if (valid == null || valid || !Objects.equals(msg, this.msg)) { 48 // only provide feedback if the validity has changed. This avoids 49 // unnecessary UI updates. 48 // only provide feedback if the validity has changed. This avoids unnecessary UI updates. 50 49 tc.setBorder(ERROR_BORDER); 51 50 tc.setBackground(ERROR_BACKGROUND); 52 51 tc.setToolTipText(msg); 53 valid = false;52 valid = Boolean.FALSE; 54 53 this.msg = msg; 55 54 } … … 62 61 protected void feedbackValid(String msg) { 63 62 if (valid == null || !valid || !Objects.equals(msg, this.msg)) { 64 // only provide feedback if the validity has changed. This avoids 65 // unnecessary UI updates. 63 // only provide feedback if the validity has changed. This avoids unnecessary UI updates. 66 64 tc.setBorder(UIManager.getBorder("TextField.border")); 67 65 tc.setBackground(UIManager.getColor("TextField.background")); 68 66 tc.setToolTipText(msg == null ? "" : msg); 69 valid = true;67 valid = Boolean.TRUE; 70 68 this.msg = msg; 71 69 } -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
r8005 r8377 184 184 public void propertyChange(PropertyChangeEvent evt) { 185 185 if ("editable".equals(evt.getPropertyName())) { 186 if (evt.getNewValue().equals( true)) {186 if (evt.getNewValue().equals(Boolean.TRUE)) { 187 187 enableMenu(); 188 188 } else { -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java
r8291 r8377 125 125 defaults.put("EditorPane[Enabled].backgroundPainter", bgColor); 126 126 pane.putClientProperty("Nimbus.Overrides", defaults); 127 pane.putClientProperty("Nimbus.Overrides.InheritDefaults", true);127 pane.putClientProperty("Nimbus.Overrides.InheritDefaults", Boolean.TRUE); 128 128 pane.setBackground(bgColor); 129 129 }
Note:
See TracChangeset
for help on using the changeset viewer.