Changeset 16697 in josm
- Timestamp:
- 2020-06-21T14:08:25+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadTextComponentValidator.java
r16695 r16697 6 6 import java.util.Collection; 7 7 import java.util.Collections; 8 import java.util.Objects; 8 9 9 10 import javax.swing.JLabel; … … 33 34 msg = msg != null ? "<html>\u2714 " + msg : null; 34 35 super.feedbackValid(msg); 35 feedback.setText(msg); 36 feedback.setForeground(VALID_COLOR); 37 feedback.setBackground(null); 38 feedback.setBorder(null); 36 if (!Objects.equals(msg, feedback.getText())) { 37 feedback.setText(msg); 38 feedback.setForeground(VALID_COLOR); 39 feedback.setBackground(null); 40 feedback.setBorder(null); 41 } 39 42 } 40 43 … … 43 46 msg = msg != null ? "<html>" + msg : null; 44 47 super.feedbackWarning(msg); 45 feedback.setText(msg); 46 feedback.setForeground(null); 47 feedback.setBackground(WARNING_BACKGROUND); 48 feedback.setBorder(WARNING_BORDER); 48 if (!Objects.equals(msg, feedback.getText())) { 49 feedback.setText(msg); 50 feedback.setForeground(null); 51 feedback.setBackground(WARNING_BACKGROUND); 52 feedback.setBorder(WARNING_BORDER); 53 } 49 54 } 50 55
Note:
See TracChangeset
for help on using the changeset viewer.