Ignore:
Timestamp:
2015-12-30T18:40:01+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #12257 - Ensures caret color is the same than text foreground color

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r9205 r9222  
    975975        UIManager.put("OptionPane.cancelIcon", ImageProvider.get("cancel"));
    976976        UIManager.put("OptionPane.noIcon", UIManager.get("OptionPane.cancelIcon"));
     977        // Ensures caret color is the same than text foreground color, see #12257
     978        // See http://docs.oracle.com/javase/7/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html
     979        for (String p : Arrays.asList(
     980                "EditorPane", "FormattedTextField", "PasswordField", "TextArea", "TextField", "TextPane")) {
     981            UIManager.put(p+".caretForeground", UIManager.getColor(p+".foreground"));
     982        }
    977983
    978984        I18n.translateJavaInternalMessages();
Note: See TracChangeset for help on using the changeset viewer.